mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-26 00:37:43 +03:00
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
This commit is contained in:
@@ -482,6 +482,23 @@ struct _xmlNode {
|
||||
#define XML_GET_LINE(n) \
|
||||
(xmlGetLineNo(n))
|
||||
|
||||
/**
|
||||
* xmlDocProperty
|
||||
*
|
||||
* Set of properties of the document as found by the parser
|
||||
* Some of them are linked to similary named xmlParserOption
|
||||
*/
|
||||
typedef enum {
|
||||
XML_DOC_WELLFORMED = 1<<0, /* document is XML well formed */
|
||||
XML_DOC_NSVALID = 1<<1, /* document is Namespace valid */
|
||||
XML_DOC_OLD10 = 1<<2, /* parsed with old XML-1.0 parser */
|
||||
XML_DOC_DTDVALID = 1<<3, /* DTD validation was successful */
|
||||
XML_DOC_XINCLUDE = 1<<4, /* XInclude substitution was done */
|
||||
XML_DOC_USERBUILT = 1<<5, /* Document was built using the API
|
||||
and not by parsing an instance */
|
||||
XML_DOC_INTERNAL = 1<<6, /* built for internal processing */
|
||||
XML_DOC_HTML = 1<<7 /* parsed or built HTML document */
|
||||
} xmlDocProperties;
|
||||
|
||||
/**
|
||||
* xmlDoc:
|
||||
@@ -521,6 +538,10 @@ struct _xmlDoc {
|
||||
actually an xmlCharEncoding */
|
||||
struct _xmlDict *dict; /* dict used to allocate names or NULL */
|
||||
void *psvi; /* for type/PSVI informations */
|
||||
int parseFlags; /* set of xmlParserOption used to parse the
|
||||
document */
|
||||
int properties; /* set of xmlDocProperties for this document
|
||||
set at the end of parsing */
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user