added a parser XML_PARSE_COMPACT option to allocate small text nodes (less
* HTMLparser.c parser.c SAX2.c debugXML.c tree.c valid.c xmlreader.c
xmllint.c include/libxml/HTMLparser.h include/libxml/parser.h:
added a parser XML_PARSE_COMPACT option to allocate small
text nodes (less than 8 bytes on 32bits, less than 16bytes on 64bits)
directly within the node, various changes to cope with this.
* result/XPath/tests/* result/XPath/xptr/* result/xmlid/*: this
slightly change the output
Daniel
diff --git a/testXPath.c b/testXPath.c
index 8086a81..677419a 100644
--- a/testXPath.c
+++ b/testXPath.c
@@ -178,9 +178,9 @@
}
if (document == NULL) {
if (filename == NULL)
- document = xmlReadDoc(buffer,NULL,NULL,0);
+ document = xmlReadDoc(buffer,NULL,NULL,XML_PARSE_COMPACT);
else
- document = xmlReadFile(filename,NULL,0);
+ document = xmlReadFile(filename,NULL,XML_PARSE_COMPACT);
}
for (i = 1; i < argc ; i++) {
if ((!strcmp(argv[i], "-i")) || (!strcmp(argv[i], "--input"))) {