Difference between revisions of "Extracting Data from an XML file"
(Created page with "'''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...") |
|||
Line 1: | Line 1: | ||
+ | [[Category: Examples]] | ||
+ | === 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). | '''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). | ||
Latest revision as of 08:27, 17 January 2023
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
Enable comment auto-refresher