1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-01-22 22:03:34 +03:00

fixed xmlCopyDoc to also copy the doc->URL as pointed by Martijn Faassen

* tree.c: fixed xmlCopyDoc to also copy the doc->URL as pointed
  by Martijn Faassen
Daniel
This commit is contained in:
Daniel Veillard 2005-01-27 17:26:49 +00:00
parent e8a550b392
commit f59507d428
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Thu Jan 27 18:23:50 CET 2005 Daniel Veillard <daniel@veillard.com>
* tree.c: fixed xmlCopyDoc to also copy the doc->URL as pointed
by Martijn Faassen
Thu Jan 27 13:39:04 CET 2005 Kasimier Buchcik <libxml2-cvs@cazic.net>
* xmlschemas.c include/libxml/schemasInternals.h:
Added an initial skeleton for indentity-constraints. This is all

2
tree.c
View File

@ -4164,6 +4164,8 @@ xmlCopyDoc(xmlDocPtr doc, int recursive) {
ret->name = xmlMemStrdup(doc->name);
if (doc->encoding != NULL)
ret->encoding = xmlStrdup(doc->encoding);
if (doc->URL != NULL)
ret->URL = xmlStrdup(doc->URL);
ret->charset = doc->charset;
ret->compression = doc->compression;
ret->standalone = doc->standalone;