From: Charlie Bozeman (cbozeman@HiWAAY.net)
Date: Sat Feb 10 2001 - 10:40:24 EST
Just in case you haven't already discovered this, a bug was found and
corrected where copying documents with a dtd don't work. Upgrade to
2.3.0.
> Terry Lee wrote:
>
> I have encounter this problem
>
> if sample.xml contain
> <!DOCTYPE Sample SYSTEM "sample.dtd">
> //Fail ==============================
> xmlDocPtr newDoc = xmlParseFile("sample.xml");
> xmlDocPtr temp;
> temp = xmlCopyDoc(newDoc,1);
> xmlSaveFile("./test.txt",temp);
> ==============================
> then there is segmentation fault
>
> but if i do
> //Work ==============================
> xmlDocPtr newDoc = xmlParseFile("sample.xml");
> xmlDocPtr temp;
> temp = xmlCopyDoc(newDoc,1);
> xmlFreeDoc(newDoc); //##### new line ####
> xmlSaveFile("./test.txt",temp);
> ==============================
>
> if sample.xml do not contain
> <!DOCTYPE Sample SYSTEM "sample.dtd">
> both case work.
>
>
> I am using libxml-2.2.2.12
> the problem exist in windows 2000, NT and linux RedHat 7.0
>
> Terry
>
>
>
>
---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net
This archive was generated by hypermail 2b29 : Sat Feb 10 2001 - 10:43:54 EST