cleanup added class for parser context, added first cut for push mode
* python/Makefile.am python/types.c: cleanup
* python/libxml.c python/libxml.py python/libxml_wrap.h
python/generator.py python/libxml2-python-api.xml
python/libxml2class.txt: added class for parser context, added
first cut for push mode support. Added a framework to generate
accessors functions.
* python/tests/Makefile.am python/tests/push.py: added a push
test
Daniel
diff --git a/python/libxml2class.txt b/python/libxml2class.txt
index 0411124..d952c2c 100644
--- a/python/libxml2class.txt
+++ b/python/libxml2class.txt
@@ -6,9 +6,13 @@
# functions from module HTMLparser
+htmlFreeParserCtxt()
htmlHandleOmittedElem()
htmlIsScriptAttribute()
+htmlParseCharRef()
+htmlParseChunk()
htmlParseDoc()
+htmlParseElement()
htmlParseFile()
# functions from module HTMLtree
@@ -68,6 +72,7 @@
# functions from module parser
cleanupParser()
+createDocParserCtxt()
defaultSAXHandlerInit()
htmlDefaultSAXHandlerInit()
initParser()
@@ -88,6 +93,10 @@
checkLanguageID()
copyChar()
copyCharMultiByte()
+createEntityParserCtxt()
+createFileParserCtxt()
+createMemoryParserCtxt()
+htmlCreateFileParserCtxt()
htmlInitAutoClose()
isBaseChar()
isBlank()
@@ -98,8 +107,14 @@
isIdeographic()
isLetter()
isPubidChar()
+namePop()
+namePush()
+newParserCtxt()
+nodePop()
+nodePush()
# functions from module python
+createPushParser()
registerErrorHandler()
# functions from module tree
@@ -315,6 +330,66 @@
Class xmlElement(xmlNode)
+Class parserCtxt()
+ # accessors
+ doc()
+
+ # functions from module parser
+ clearParserCtxt()
+ initParserCtxt()
+ parseChunk()
+ parseDocument()
+ parseExtParsedEnt()
+ stopParser()
+
+ # functions from module parserInternals
+ decodeEntities()
+ freeParserCtxt()
+ handleEntity()
+ namespaceParseNCName()
+ namespaceParseNSDef()
+ nextChar()
+ parseAttValue()
+ parseAttributeListDecl()
+ parseCDSect()
+ parseCharData()
+ parseCharRef()
+ parseComment()
+ parseContent()
+ parseDocTypeDecl()
+ parseElement()
+ parseElementDecl()
+ parseEncName()
+ parseEncodingDecl()
+ parseEndTag()
+ parseEntityDecl()
+ parseEntityRef()
+ parseExternalSubset()
+ parseMarkupDecl()
+ parseMisc()
+ parseName()
+ parseNamespace()
+ parseNmtoken()
+ parseNotationDecl()
+ parsePEReference()
+ parsePI()
+ parsePITarget()
+ parsePubidLiteral()
+ parseQuotedString()
+ parseReference()
+ parseSDDecl()
+ parseStartTag()
+ parseSystemLiteral()
+ parseTextDecl()
+ parseVersionInfo()
+ parseVersionNum()
+ parseXMLDecl()
+ parserHandlePEReference()
+ parserHandleReference()
+ popInput()
+ scanName()
+ skipBlankChars()
+ stringDecodeEntities()
Class xpathContext()
# functions from module python