fileio/
mgffplanets__define.pro
includes main-level programExample of using the IDL SAX parser to read a simple XML file, planets.xml in the examples/data directory of the IDL distribution. This parser is only interested in getting and reporting the planet names.
Class description for mgffplanets
Inheritance
- IDLFFXMLSAX
Properties
Properties in mgffplanets
- _extra init
Fields
Fields in IDLFFXMLSAX
- FILENAME ''
- HALT_PROCESSING 0S
- IDLFFXMLSAXVERSION 0S
- IDLFFXMLSAX_BOTTOM 0LL
- IDLFFXMLSAX_TOP 0LL
- VALIDATION_MODE 0S
- _XML_LOCATOR 0LL
- _XML_PARSER 0LL
Fields in mgffplanets
- planets ptr_new()
pointer to strarr of planet names
Routines
Routines from mgffplanets__define.pro
result = mgffplanets::getPlanets()
Return the planet names.
mgffplanets::startElement, uri, local, name [, attname] [, attvalue]
Start tag.
mgffplanets::startDocument
Initialize data structures when starting the document.
mgffplanets::cleanup
Free resources.
result = mgffplanets::init( [_extra=keywords])
Create the planets.xml XML SAX parser.
mgffplanets__define
Define instance variables.
Routine details
top source mgffplanets::getPlanets
result = mgffplanets::getPlanets()
Return the planet names.
Return value
strarr
top source mgffplanets::startElement
mgffplanets::startElement, uri, local, name [, attname] [, attvalue]
Start tag.
Parameters
- uri in required type=string
namespace URI associated with element
- local in required type=string
tag name with any prefix removed
- name in required type=string
tag name
- attname in optional type=starr
attribute names, if present
- attvalue in optional type=strarr
attribute values, if present
top source mgffplanets::startDocument
mgffplanets::startDocument
Initialize data structures when starting the document.
File attributes
Modification date: | Sat Jan 31 21:16:13 2015 |
Lines: | 45 |
Docformat: | rst rst |