Extracting Data from an XML file

Example model

Description: 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).

Keywords: Data extraction, xml, DOM parsing

Author: D. Rice, Lumina Decision Systems

Download: Parsing XML example.ana

Comments


You are not allowed to post comments.