1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

fix bug #125047 about serializing when finding a document fragment node.

* tree.c: fix bug #125047 about serializing when finding a
  document fragment node.
Daniel
This commit is contained in:
Daniel Veillard
2003-10-28 13:26:51 +00:00
parent 4772af6c74
commit cec50a6aff
3 changed files with 15 additions and 0 deletions

4
tree.c
View File

@@ -7451,6 +7451,10 @@ xmlNodeDumpOutputInternal(xmlOutputBufferPtr buf, xmlDocPtr doc,
xmlDtdDumpOutput(buf, (xmlDtdPtr) cur, encoding);
return;
}
if (cur->type == XML_DOCUMENT_FRAG_NODE) {
xmlNodeListDumpOutput(buf, doc, cur->children, level, format, encoding);
return;
}
if (cur->type == XML_ELEMENT_DECL) {
xmlDumpElementDecl(buf->buffer, (xmlElementPtr) cur);
return;