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
diff --git a/ChangeLog b/ChangeLog
index 8773642..0934fc8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/tree.c b/tree.c
index 31511c5..8ef2fc8 100644
--- a/tree.c
+++ b/tree.c
@@ -4164,6 +4164,8 @@
         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;