Main > Programming > Libraries >

XML::Table2XML 1.0

XML::Table2XML 1.0

Sponsored Links

XML::Table2XML 1.0 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.010 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 847
Date added: 2007-06-29
Publisher: Roland Kapl

XML::Table2XML 1.0 description

XML::Table2XML is a Perl module for generic conversion of tabular data to XML by reverting Excels flattener methodology.

SYNOPSIS

use XML::Table2XML;
my $outXML = "";
# first parse column path headers for attribute names, id columns and special common sibling mark ("//")
parseHeaderForXML("rootNodeName", [/@id,/@name2,/a]);
# then walk through the whole data to build the actual XML string into $outXML
my @datarows = ([1,"testName","testA"],
[1,"testName","testB"],
[1,"testName","testC"]);
for my $lineData (@datarows) {
$outXML.=addXMLLine($lineData);
}
#finally finish the XML and reset the static vars
$outXML.=addXMLLine(undef);
print $outXML;
# yields:
# < ?xml version="1.0"? >
# < rootNodeName id="1" name2="testName" >< a >testA< /a >testB< /a >< a >testC< /a >< /rootNodeName >

table2xml is an algorithm having two functions that allow the conversion of tabular data to XML without using XSLT. This is achieved by reverting the "Flattener" methodology used by Microsoft Excel to convert the XML tree format to a two-dimensional table (see Opening XML Files in Excel and INFO: Microsoft Excel 2002 and XML).

This reversion is achieved by:

1. (possibly) modifying the flattened table a bit to enable a simpler processing of the data,
2. sequentially processing the data column- and row wise.
The whole algorithm is done without the aid of any XML library, so it lends itself to easy translation into other environments and languages.
Producing the XML:
1. invoke parseHeaderForXML, using a line with the rootnode and path information.
2. After parsing the header info, the table data can be processed row by row by calling addXMLLine. The current data row is provided in the single argument lineData, the built XML is string returned and can be collected/written.
3. A final call to addXMLLine with lineData == undef restores the static variables and finalizes the XML string (closes any still open tags).

XML::Table2XML 1.0 Screenshot

Advertisements

XML::Table2XML 1.0 Keywords

Bookmark XML::Table2XML 1.0

Hyperlink code:
Link for forum:

XML::Table2XML 1.0 Copyright

WareSeeker periodically updates pricing and software information of XML::Table2XML 1.0 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of XML::Table2XML 1.0 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
XML::CompareML is a Perl module for managing multi-system and multi-item comparisons. Free Download
XML::TiePYX is a Perl module to read or write XML data in PYX format via tied filehandle Free Download
Data::CTable is a Perl module that helps you read, write, manipulate tabular data. Free Download
XML::Literal is a Perl module with syntax support for XML literals. Free Download
XML::SAX2Perl is a Perl module to translate Perl SAX methods to Java/CORBA style methods. Free Download
XML::Validator::Schema is a Perl module to validate XML against a subset of W3C XML Schema. Free Download
XML::LibXML::Parser is a Perl module to parse XML Data with XML::LibXML. Free Download
XML::XMetaL is a Perl module with dispatch class for XML::XMetaL development framework. Free Download