Package itools :: Package xml

Package xml

Classes
  DocType
The DocType object
  Element
  ElementSchema
  XMLError
  XMLNamespace
  XMLParser
Low-Level XML Parser
Functions
 
find_end(events, start)
Receives a list of events and a position in the list of an start element.
 
get_attr_datatype(tag_uri, tag_name, attr_uri, attr_name, attributes=None)
 
get_attribute_qname(namespace, local_name)
Returns the fully qualified name
 
get_doctype(name, doctype)
 
get_element(events, name)
 
get_element_schema(namespace, name)
 
get_end_tag(tag_uri, tag_name)
 
get_namespace(namespace_uri)
Returns the namespace handler associated to the given uri.
 
get_qname(tag_uri, tag_name)
Returns the fully qualified name.
 
has_namespace(namespace_uri)
Returns true if there is namespace handler associated to the given uri.
 
is_empty(namespace, name)
 
register_dtd(...)
Register a URN or a URI
 
register_namespace(namespace, *args)
Associates a namespace handler to a namespace uri.
 
stream_to_str(stream, encoding='UTF-8', map=(<function stream_to_str_xmldecl at 0xf550c8>, <function <lamb...)
 
xml_to_text(stream)
Variables
  CDATA = 7
  COMMENT = 5
  DOCUMENT_TYPE = 1
  END_ELEMENT = 3
  PI = 6
  START_ELEMENT = 2
  TEXT = 4
  XML_DECL = 0
  xml_uri = 'http://www.w3.org/XML/1998/namespace'
  xmlns_uri = 'http://www.w3.org/2000/xmlns/'
Function Details

find_end(events, start)

 

Receives a list of events and a position in the list of an start element.

Returns the position in the list where the element ends.

get_namespace(namespace_uri)

 
Returns the namespace handler associated to the given uri. If there is none the default namespace handler will be returned, and a warning message will be issued.

register_namespace(namespace, *args)

 
Associates a namespace handler to a namespace uri. It a prefix is given it also associates that that prefix to the given namespace.