aboutsummaryrefslogtreecommitdiffstats
path: root/xmllint.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2005-08-25 13:19:21 +0000
committerDaniel Veillard <veillard@src.gnome.org>2005-08-25 13:19:21 +0000
commit8874b94cd2e2086f4cefe026286e0f64cac6ec9a (patch)
tree640c7e31f9cd75634487bb9074cc74516209aab9 /xmllint.c
parent3854c57a99852edc952cd69d4e7330b39031035c (diff)
downloadandroid_external_libxml2-8874b94cd2e2086f4cefe026286e0f64cac6ec9a.tar.gz
android_external_libxml2-8874b94cd2e2086f4cefe026286e0f64cac6ec9a.tar.bz2
android_external_libxml2-8874b94cd2e2086f4cefe026286e0f64cac6ec9a.zip
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 'xmllint.c')
-rw-r--r--xmllint.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmllint.c b/xmllint.c
index 65e17b36..607cea31 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -196,7 +196,7 @@ static const char *pattern = NULL;
static xmlPatternPtr patternc = NULL;
static xmlStreamCtxtPtr patstream = NULL;
#endif
-static int options = 0;
+static int options = XML_PARSE_COMPACT;
static int sax = 0;
/************************************************************************
@@ -2793,6 +2793,7 @@ static void usage(const char *name) {
printf("\t--path 'paths': provide a set of paths for resources\n");
printf("\t--load-trace : print trace of all external entites loaded\n");
printf("\t--nonet : refuse to fetch DTDs or entities over network\n");
+ printf("\t--nocompact : do not generate compact text nodes\n");
printf("\t--htmlout : output results as HTML\n");
printf("\t--nowrap : do not put HTML doc wrapper\n");
#ifdef LIBXML_VALID_ENABLED
@@ -3175,6 +3176,9 @@ main(int argc, char **argv) {
} else if ((!strcmp(argv[i], "-nonet")) ||
(!strcmp(argv[i], "--nonet"))) {
options |= XML_PARSE_NONET;
+ } else if ((!strcmp(argv[i], "-nocompact")) ||
+ (!strcmp(argv[i], "--nocompact"))) {
+ options &= ~XML_PARSE_COMPACT;
} else if ((!strcmp(argv[i], "-load-trace")) ||
(!strcmp(argv[i], "--load-trace"))) {
load_trace++;