mglib

Personal IDL library for M. Galloy

single page | use frames     summary     class     fields     routine details     file attributes

fileio/

mg_xml_parse.pro

includes main-level program

Parses 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>
should create the same structure as:
{ numlist: replicate({ number: 0}, 2) }

Class description for mgffxmlparser

Inheritance

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::endElement

mgffxmlparser::endElement, uri, local, name

Parameters

uri
local
name

top mgffxmlparser::characters

mgffxmlparser::characters, chars

Parameters

chars

top mgffxmlparser::getResult

result = mgffxmlparser::getResult()

top mgffxmlparser::cleanup

mgffxmlparser::cleanup

top mgffxmlparser::init

result = mgffxmlparser::init(_extra=_extra)

Keywords

_extra

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
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.