fileio/
mg_xml_parse.pro
includes main-level programParses an URL into a structure. If there are multiple elements of the same name at a given level an array of structures is created. For example:
<numlist>
<number>0</number>
<number>1</number>
</numlist>
{ numlist: replicate({ number: 0}, 2) }
Class description for mgffxmlparser
Inheritance
- IDLFFXMLSAX
Properties
Properties in mgffxmlparser
- _extra init
Routines
Routines from mg_xml_parse.pro
mgffxmlparser::startElement, uri, local, name, attName, attValue
mgffxmlparser::endElement, uri, local, name
mgffxmlparser::characters, chars
result = mgffxmlparser::getResult()
mgffxmlparser::cleanup
result = mgffxmlparser::init(_extra=_extra)
mgffxmlparser__define
result = mg_xml_parse(input [, /url] [, /xml_string])
Parse an XML file into a structure.
Routine details
top mgffxmlparser::startElement
mgffxmlparser::startElement, uri, local, name, attName, attValue
Parameters
- uri
- local
- name
- attName
- attValue
top mgffxmlparser::getResult
result = mgffxmlparser::getResult()
top mgffxmlparser::cleanup
mgffxmlparser::cleanup
top mgffxmlparser__define
mgffxmlparser__define
top mg_xml_parse
result = mg_xml_parse(input [, /url] [, /xml_string])
Parse an XML file into a structure.
Return value
structure
Parameters
- input in required type=string
filename, URL or actual contents of the XML to parse
Keywords
- url in optional type=boolean
set to specify that input is an URL
- xml_string in optional type=boolean
set to specify that input is a string containing XML
File attributes
Modification date: | Wed May 14 15:07:14 2014 |
Lines: | 58 |
Docformat: | rst rst |
Contact me if you have enhancement requests or bug fixes.