ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH

Reference
ActivePython 2.5
Python Documentation
Library Reference
8. Structured Markup Processing Tools
8.13 xml.etree.ElementTree -- The ElementTree XML API
8.13.1 Functions
8.13.2 ElementTree Objects
8.13.3 QName Objects
8.13.4 TreeBuilder Objects
8.13.5 XMLTreeBuilder Objects

MyASPN >> Reference >> ActivePython 2.5 >> Python Documentation >> Library Reference >> 8. Structured Markup Processing Tools >> 8.13 xml.etree.ElementTree -- The ElementTree XML API
ActivePython 2.5 documentation


8.13.5 XMLTreeBuilder Objects

class XMLTreeBuilder( [html,] [target])
Element structure builder for XML source data, based on the expat parser. html are predefined HTML entities. This flag is not supported by the current implementation. target is the target object. If omitted, the builder uses an instance of the standard TreeBuilder class.

close( )
Finishes feeding data to the parser.

Returns:
An element structure.

doctype( name, pubid, system)
Handles a doctype declaration. name is the doctype name. pubid is the public identifier. system is the system identifier.

feed( data)
Feeds data to the parser.

data is encoded data.

See About this document... for information on suggesting changes.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved