diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2008-07-31 19:54:59 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2008-07-31 19:54:59 +0000 |
commit | ae0765b6819c77aae2638b40735f354b05b9c150 (patch) | |
tree | 006c41d3978e1e4cb087b4414543af6792614a9a /SAX2.c | |
parent | 373345764b92c5959154ec233163a2a64a775863 (diff) | |
download | android_external_libxml2-ae0765b6819c77aae2638b40735f354b05b9c150.tar.gz android_external_libxml2-ae0765b6819c77aae2638b40735f354b05b9c150.tar.bz2 android_external_libxml2-ae0765b6819c77aae2638b40735f354b05b9c150.zip |
more progresses against the official regression tests small cleanup for
* runxmlconf.c: more progresses against the official regression tests
* runsuite.c: small cleanup for non-leak reports
* include/libxml/tree.h: parsing flags and other properties are
now added to the document node, this is generally useful and
allow to make Name and NmToken validations based on the parser
flags, more specifically the 5th edition of XML or not
* HTMLparser.c tree.c: small side effects for the previous changes
* parser.c SAX2.c valid.c: the bulk of teh changes are here,
the parser and validation behaviour can be affected, parsing
flags need to be copied, lot of changes. Also fixing various
validation problems in the regression tests.
Daniel
svn path=/trunk/; revision=3762
Diffstat (limited to 'SAX2.c')
-rw-r--r-- | SAX2.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -957,6 +957,8 @@ xmlSAX2StartDocument(void *ctx) #ifdef LIBXML_HTML_ENABLED if (ctxt->myDoc == NULL) ctxt->myDoc = htmlNewDocNoDtD(NULL, NULL); + ctxt->myDoc->properties = XML_DOC_HTML; + ctxt->myDoc->parseFlags = ctxt->options; if (ctxt->myDoc == NULL) { xmlSAX2ErrMemory(ctxt, "xmlSAX2StartDocument"); return; @@ -972,6 +974,10 @@ xmlSAX2StartDocument(void *ctx) } else { doc = ctxt->myDoc = xmlNewDoc(ctxt->version); if (doc != NULL) { + doc->properties = 0; + if (ctxt->options & XML_PARSE_OLD10) + doc->properties |= XML_DOC_OLD10; + doc->parseFlags = ctxt->options; if (ctxt->encoding != NULL) doc->encoding = xmlStrdup(ctxt->encoding); else |