Kirix Support Forums

XML Data

Please post any help questions, requests or other feedback here.

XML Data

Postby bobfarr on Wed Feb 18, 2009 8:16 pm

Any plans to incorporate XML parsing functionality into Strata (or is there anything already in the product that I'm missing)? In addition to working with flat-files (positional and delimited), we work extensively with XML data (some VERY large XML datasets). It would be great to have the abilty to easily mash XML datasets with flat-files (tables).
.
bobfarr
Registered User
 
Posts: 1
Joined: Thu Jan 04, 2007 1:31 pm
Location: Lake Forest, IL

Re: XML Data

Postby Ben on Thu Feb 19, 2009 12:04 pm

While there isn't an XML mapper built into the interface itself, the scripting language has a pretty comprehensive XML parser that probably would be able to achieve what you want with a little coding.

For example, to parse an xml file, examine the following minimal example. This can, of course, be combined with file reading routines as well as web request routines to open local or remote xml files.

Code: Select all
var xml = "<?xml version='1.0'?><node>contents</node>";

var node = new XmlNode;
if (node.parse(xml))
{
    // parse succeeded -- print out the contents of the root node
    print(node.getNodeValue());
}
Ben Williams
Kirix Support Team
User avatar
Ben
Kirix Support Team
 
Posts: 522
Joined: Mon Dec 19, 2005 6:29 am

Return to Strata Help & Feedback