mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
extended the XmlTextReader API a bit, addding accessors for the current
* xmlreader.c include/libxml/xmlreader.h doc/libxml2-api.xml: extended the XmlTextReader API a bit, addding accessors for the current doc and node, and an entity substitution mode for the parser. * python/libxml.py python/libxml2class.txt: related updates * python/tests/Makefile.am python/tests/reader.py python/tests/reader2.py python/tests/reader3.py: updated a bit the old tests and added a new one to test the entities handling Daniel
This commit is contained in:
@@ -18,8 +18,9 @@ extern "C" {
|
||||
|
||||
typedef enum {
|
||||
XML_PARSER_LOADDTD = 1,
|
||||
XML_PARSER_DEFAULTATTRS,
|
||||
XML_PARSER_VALIDATE
|
||||
XML_PARSER_DEFAULTATTRS = 2,
|
||||
XML_PARSER_VALIDATE = 3,
|
||||
XML_PARSER_SUBST_ENTITIES = 4
|
||||
} xmlParserProperties;
|
||||
|
||||
typedef struct _xmlTextReader xmlTextReader;
|
||||
@@ -96,6 +97,8 @@ int xmlTextReaderSetParserProp (xmlTextReaderPtr reader,
|
||||
int value);
|
||||
int xmlTextReaderGetParserProp (xmlTextReaderPtr reader,
|
||||
int prop);
|
||||
xmlNodePtr xmlTextReaderCurrentNode (xmlTextReaderPtr reader);
|
||||
xmlDocPtr xmlTextReaderCurrentDoc (xmlTextReaderPtr reader);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user