|
Posted by Captain Dondo on 09/14/06 13:54
On Tue, 12 Sep 2006 05:09:14 -0700, Goldking wrote:
> I have an XML File like:
> <xml version=1.0>
> <wholecontent>
> <group>
> <name> Goldking </name>
> <description>Made of Gold. </descripton>
> </group>
> <group>
> <name> SilverKing </name>
> <description> Made of Silver. </descripton>
> </group>
> </wholecontent>
> </xml>
>
>
> I wish to read
> 1) All the Name and to be displayed.
> 2) Get the description for a particular name.
>
>
> Can we use PHP to raed this data? How it could be acheived?
>
>
> This Qn has raised to learn / understand XML with PHP..
>
I use <http://keithdevens.com/software/phpxml>
You have to write your own code to walk the resulting data structure, but
PHP makes that easy.
--Yan
--
o__
,>/'_ o__
(_)\(_) ,>/'_ o__
Yan Seiner, PE (_)\(_) ,>/'_ o__
Certified Personal Trainer (_)\(_) ,>/'_ o__
Licensed Professional Engineer (_)\(_) ,>/'_
Who says engineers have to be pencil necked geeks? (_)\(_)
[Back to original message]
|