aboutsummaryrefslogtreecommitdiffstats
path: root/xmllint.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2006-10-20 12:55:34 +0000
committerDaniel Veillard <veillard@src.gnome.org>2006-10-20 12:55:34 +0000
commit26a45c815a6c6e849cd5c3dda6a0c52fa41626d0 (patch)
tree26d28c09875701491a4cc99858ec21007a6e7dc3 /xmllint.c
parent777737ea020106db4d376f2d8b3992198892f29a (diff)
downloadandroid_external_libxml2-26a45c815a6c6e849cd5c3dda6a0c52fa41626d0.tar.gz
android_external_libxml2-26a45c815a6c6e849cd5c3dda6a0c52fa41626d0.tar.bz2
android_external_libxml2-26a45c815a6c6e849cd5c3dda6a0c52fa41626d0.zip
fix comment for xmlDocSetRootElement c.f. #351981 order XPath elements
* tree.c: fix comment for xmlDocSetRootElement c.f. #351981 * xmllint.c: order XPath elements when using --shell Daniel
Diffstat (limited to 'xmllint.c')
-rw-r--r--xmllint.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmllint.c b/xmllint.c
index 491c384c..5e1bfd72 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -2305,8 +2305,10 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) {
/*
* shell interaction
*/
- if (shell)
+ if (shell) {
+ xmlXPathOrderDocElems(doc);
xmlShell(doc, filename, xmlShellReadline, stdout);
+ }
#endif
#endif