Extracting Data from an XML file


Type: Model example, Extra

Suppose you receive data in an XML format that you want to read into your model. This example demonstrates two methods for extracting data: Using a full XML DOM parser, or using regular expressions. The first method fully parses the XML structure, the second simply finds the data of interest by matching patterns, which can be easier for very simple data structures (as is often the case).

Download: Parsing XML example.ana

Author: D. Rice, Lumina Decision Systems

Keywords: Data import and cleaning, Data extraction, xml, DOM parsing

See Also

Comments
Loading comments...