diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2005-08-25 13:19:21 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2005-08-25 13:19:21 +0000 |
commit | 8874b94cd2e2086f4cefe026286e0f64cac6ec9a (patch) | |
tree | 640c7e31f9cd75634487bb9074cc74516209aab9 /testXPath.c | |
parent | 3854c57a99852edc952cd69d4e7330b39031035c (diff) | |
download | libxml2-8874b94cd2e2086f4cefe026286e0f64cac6ec9a.tar.gz |
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
Diffstat (limited to 'testXPath.c')
-rw-r--r-- | testXPath.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testXPath.c b/testXPath.c index 8086a810..677419aa 100644 --- a/testXPath.c +++ b/testXPath.c @@ -178,9 +178,9 @@ int main(int argc, char **argv) { } 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"))) { |