Parser Object Method List
- namespace(name)
- returns the namespace name (URI), if any.
The argument has to be a name passed to a Start or End handler
- eq_name(name1, name2)
- true if names are identical after namespace resolution
- generate_ns_name(name, namespace)
- return a name for use by namespace() and
eq_name()
- default_current
- when called from a handler, invokes the default handler (if registered)
with the underlying characters from the document
- current_line, current_column, current_byte
- current parse location
- base(newBase)
- returns the base URL used for relative-URL resolution, first changing it
if a newBase is provided
- context
- returns a list containing the element type stack
- current_element
- returns type of immediately enclosing element
- in_element(type)
- returns true if in the content of an element of the given type
- depth
- returns the depth of the element stack
- position_in_context(lines)
- returns a chunk of the document around the current parse position
- parse(source)
- the argument should either be a string containing the whole document, or
an open file handle
- parsefile
- parse a file, by name