[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 /", "", $xml); $filehandle = fopen($xmlfile, 'wb'); $o

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 ,

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 (http://ww

[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 /", "", $xml); $filehandle = fopen($xmlfile, 'wb'); $ok = fwrite($filehandle

[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 to empty string ? Try the code below , no successful. $xmlfile = "/home/gvintranet/datacraft/htdocs/properties/test_cdata.xml"; $xml = file_get_contents($xmlfile); $xml = preg_replace('/[^(\\/Hard

[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 to empty string ? Try the code below , no successful. $xmlfile = "/home/gvintranet/datacraft/htdocs/properties/test_cdata.xml"; $xml = file_get_contents($xmlfile); $xml = preg_replace('/[^(\\/HardwareVersion)]<\

[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 : Anybody have any suggestion how to do it ? Thanks. - weetat $xmlfile = file_get_contents("http://urloffile.com/filename.xml";); I mea