Re: XML

From: Date: Mon, 26 Jun 2006 09:14:07 +0000
Subject: Re: XML
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-238628@lists.php.net to get a copy of this message
Hi all , Can I edit the xml file before doing xml parsing ? My xml file is around 16MB size. Anyone have any ideas how to do that? Thanks weetat wrote:
Add on : I got this error when i using xmldocfile() function to read the xml file , Warning: xmldocfile(): /home/gvintranet/datacraft/htdocs/uploads/test_cdata.xml:99: in /home/gvintranet/datacraft/htdocs/admin/test_writexml.php on line 6 Warning: xmldocfile(): error: in /home/gvintranet/datacraft/htdocs/admin/test_writexml.php on line 6 Warning: xmldocfile(): CData section not finished ù?¸€ü÷Œú"<ù?àù?؀ in /home/gvintranet/datacraft/htdocs/admin/test_writexml.php on line 6 Warning: xmldocfile(): <InstanceName><![CDATA[ù?¸€ü÷Œú"<ù?àù?؀Z4À„Ï]]></I in /home/gvintranet/datacraft/htdocs/admin/test_writexml.php on line 6 Warning: xmldocfile(): ^ in /home/gvintranet/datacraft/htdocs/admin/test_writexml.php on line 6 weetat wrote:
Hi all, I am using PHP 4.3.2 in Red Hat Entreprise. I have xml file which have tags as show below: <HardwareVersion><![CDATA[ù?¸€ü÷Œú"<ù?àù?Ø€Z4À„Ï]]></HardwareVersion> I need to lookup for Hardware Version tag in php ,and edit the value to empty string and save the modified xml file. Any one have any ideas how to do this?


« previous php.general (#238628) next »