freelanceprogrammers.org Forum Index » PHP

How to parse xml using php5.? ....


View user's profile Post To page top
soha_gg Posted: Tue Jun 21, 2005 2:28 pm


Joined: 09 Mar 2005

Posts: 8
How to parse xml using php5.? ....
Dear friends..

How to get output from the xml file...Plz write the code...THnx in
advance.. e.g.

<family>
<father>
<name>abc</name>
<age> 60 </age>
<mother>
<name>xyz</name>
<age> 50 </age>
</mother>

</father>
</family>
i want to get the data of this xml file..

Regards..
Reply with quote
Send private message
View user's profile Post To page top
fdqps@... Posted: Tue Jun 21, 2005 2:38 pm


Joined: 21 Jun 2005

Posts: 1
How to parse xml using php5.? ....
Hello.

Read http://se.php.net/manual/en/ref.simplexml.php.
The simpleXML stuff in PHP5 is great.

However if you need to insert new nodes you need to use the DOM functions as
well.


Best regards,

Fredrik Davidsson


-----Original Message-----
From: php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com] On
Behalf Of Muhammad Sohail Khan
Sent: den 21 juni 2005 11:29
To: php-objects@yahoogroups.com
Subject: [php-objects] How to parse xml using php5.? ....

Dear friends..

How to get output from the xml file...Plz write the code...THnx in advance..
e.g.

<family>
<father>
<name>abc</name>
<age> 60 </age>
<mother>
<name>xyz</name>
<age> 50 </age>
</mother>

</father>
</family>
i want to get the data of this xml file..

Regards..





PHP Data object relational mapping generator - http://www.meta-language.net/
Yahoo! Groups Links
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help