[PHP] Re: modify xml before parse

2006-06-29 Thread Adam Zey
Yeo Wee Tat wrote: Hi Adam, I can modify the xml file without any error , however when I tried to unserializer the xml file using PEAR:XML , it gave the error message below. I have attached my code for your perusal. Any ideas ? thanks ?php ini_set('display_errors', E_ALL); require_once

[PHP] Re: modify xml before parse

2006-06-28 Thread weetat
Hi Adam, Thank for your input. However search and replace the value such as ![CDATA[ù?¸€ü÷Œúù?àù?؀Z4À„Ï]] to empty string ? Try the code below , no successful. $xmlfile = /home/gvintranet/datacraft/htdocs/properties/test_cdata.xml; $xml = file_get_contents($xmlfile); $xml =

[PHP] Re: modify xml before parse

2006-06-28 Thread Adam Zey
weetat wrote: Hi Adam, Thank for your input. However search and replace the value such as ![CDATA[ù?¸€ü÷Œúù?àù?؀Z4À„Ï]] to empty string ? Try the code below , no successful. $xmlfile = /home/gvintranet/datacraft/htdocs/properties/test_cdata.xml; $xml =

[PHP] RE: modify xml before parse

2006-06-28 Thread Yeo Wee Tat
Hi Adam, I can modify the xml file without any error , however when I tried to unserializer the xml file using PEAR:XML , it gave the error message below. I have attached my code for your perusal. Any ideas ? thanks ?php ini_set('display_errors', E_ALL); require_once

Re: [PHP] RE: modify xml before parse

2006-06-28 Thread Chris
Yeo Wee Tat wrote: Hi Adam, I can modify the xml file without any error , however when I tried to unserializer the xml file using PEAR:XML , it gave the error message below. Ask the pear list. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List

RE: [PHP] RE: modify xml before parse

2006-06-28 Thread Yeo Wee Tat
PROTECTED] Sent: Thursday, June 29, 2006 12:12 PM To: Yeo Wee Tat Cc: php-general@lists.php.net Subject: Re: [PHP] RE: modify xml before parse Yeo Wee Tat wrote: Hi Adam, I can modify the xml file without any error , however when I tried to unserializer the xml file using PEAR:XML , it gave

[PHP] Re: modify xml before parse

2006-06-27 Thread Adam Zey
weetat wrote: Hi all, I need to read xml file before it was parsed by PHP DOM functions. The xml file have some encrypted value as shown below : InstanceName![CDATA[ù?¸€ü÷Œúù?àù?؀Z4À„Ï]]/InstanceName Anybody have any suggestion how to do it ? Thanks. - weetat $xmlfile =