Parsing XML

From: Date: Mon, 22 Dec 2003 19:58:04 +0000
Subject: Parsing XML
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9777@lists.php.net to get a copy of this message
Hi there, I'm new in using XML, and want to know witch is the best package to do the follow: Parse the follow xml to build an sql statement: <update_packet autoIncField="id" tableName="TimeEntry" nullValue="{_NULL_}" transID="IID95348261483:Mon Dec 22 17:26:03 GMT-0200 2003"> <insert id="IID37517223088"> <field name="id" type="Number" newValue="5" key="true" /> <field name="rate" type="Number" newValue="45" key="false" /> <field name="duration" type="Number" newValue="0" key="false" /> <field name="billable" type="Boolean" newValue="true" key="false" /> <field name="notes" type="String" newValue="notes" key="false" /> </insert> </update_packet> like this: insert into TimeEntry set id = 5, rate=45, duration=0, billabel=true, notes='notes' the true is that I'm very newbie in xml, and don't know how to parse, understand and convert to others data types. thanks!

« previous php.pear.general (#9777) next »