idllib

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

_extra init

Routines

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 source mgffxmlparser::startElement

mgffxmlparser::startElement, uri, local, name, attName, attValue

Parameters

uri
local
name
attName
attValue

top source mgffxmlparser::endElement

mgffxmlparser::endElement, uri, local, name

Parameters

uri
local
name

top source mgffxmlparser::characters

mgffxmlparser::characters, chars

Parameters

chars

top source mgffxmlparser::getResult

result = mgffxmlparser::getResult()

top source mgffxmlparser::cleanup

mgffxmlparser::cleanup

top source mgffxmlparser::init

result = mgffxmlparser::init(_extra=_extra)

Keywords

_extra

top source mgffxmlparser__define

mgffxmlparser__define

top source 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: Mon Nov 29 18:32:29 2010
Lines: 120
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.