Hosted by
 |
XML_Parsers
Create and destroy parsers
 |  | function Current_Input |  |
 | Open an XML parser to read from current input.
Useful to read from a pipe. |  |
|
XML elements
 |  | exception No_More_Elements |  |
 | Raised if the enclosing element (or document) ends. |  |
 |  | exception Nested_Elements |  |
 | Raised if there are nested elements that have not been read. The
application must call descend and read these elements first. |  |
 |  | function Next_Element |  |
 | Read the name of the next element on the same XML hierarchy
level. The parser must be positioned at the start of the
element, whitespace permitted. |  |
|
XML attributes
 |  | exception No_More_Attributes |  |
 | Raised if the enclosing element tag ends. |  |
 |  | function Next_Attribute |  |
 | Read the name of the next attribute in the current element
tag. The parser must be positioned at the start of the
attribute, whitespace permitted. |  |
|
 |  | function Attribute_Value |  |
 | Read the associated value of the most recently read attribute
name. The parser must be positioned at the start of the
attribute value (after the '='), whitespace permitted. |  |
|
XML hierarchy
 |  | procedure Descend |  |
 | Go down one level in the document hierarchy. |  |
|
 |  | procedure Ascend |  |
 | Go up one level in the document hierarchy. |  |
|
Error handling
 |  | procedure Warning |  |
 | Emit a warning about XML or document syntax. |  |
|
 |  | procedure Error |  |
 | Emit an error about XML or document syntax. |  |
|
|
|