Lines Matching defs:libxml2
2 """ A SAX2 driver for libxml2, on top of it's XmlReader API
22 - EntityResolver (using libxml2.?)
23 - DTDHandler (if/when libxml2 exposes such node types)
24 - DeclHandler (if/when libxml2 exposes such node types)
58 # libxml2 returns strings as UTF8
67 import libxml2
69 raise SAXReaderNotAvailable("libxml2 not available: " \
73 """SAX Locator adapter for libxml2.xmlTextReaderLocator"""
120 if severity in (libxml2.PARSER_SEVERITY_VALIDITY_WARNING,
121 libxml2.PARSER_SEVERITY_WARNING):
138 reader = libxml2.newTextReaderFilename(source)
141 input = libxml2.inputBuffer(source.getByteStream())
146 reader.SetParserProp(libxml2.PARSER_LOADDTD,1)
147 reader.SetParserProp(libxml2.PARSER_DEFAULTATTRS,1)
148 reader.SetParserProp(libxml2.PARSER_SUBST_ENTITIES,1)
149 reader.SetParserProp(libxml2.PARSER_VALIDATE,self.__validate)
151 reader.SetParserProp(libxml2.PARSER_LOADDTD, 0)
361 # TODO: remove if/when libxml2 supports dtd events