1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 20:25:14 +03:00

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
This commit is contained in:
Daniel Veillard 2006-10-20 12:55:34 +00:00
parent 777737ea02
commit 26a45c815a
3 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,8 @@
Fri Oct 20 14:55:47 CEST 2006 Daniel Veillard <daniel@veillard.com>
* tree.c: fix comment for xmlDocSetRootElement c.f. #351981
* xmllint.c: order XPath elements when using --shell
Tue Oct 17 23:23:26 CEST 2006 Daniel Veillard <daniel@veillard.com>
* xmlregexp.c: applied fix from Christopher Boumenot for bug

5
tree.c
View File

@ -4534,12 +4534,13 @@ xmlDocGetRootElement(xmlDocPtr doc) {
/**
* xmlDocSetRootElement:
* @doc: the document
* @root: the new document root element
* @root: the new document root element, if root is NULL no action is taken,
* to remove a node from a document use xmlUnlinkNode(root) instead.
*
* Set the root element of the document (doc->children is a list
* containing possibly comments, PIs, etc ...).
*
* Returns the old root element if any was found
* Returns the old root element if any was found, NULL if root was NULL
*/
xmlNodePtr
xmlDocSetRootElement(xmlDocPtr doc, xmlNodePtr root) {

View File

@ -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