Re: PHP-XML problem
| From: | Jan Grafstro"m | Date: | Mon, 15 Oct 2001 15:29:52 +0000 |
| Subject: | Re: PHP-XML problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-71113@lists.php.net to get a copy of this message | ||
Hi Umesh!
One way is to explode the file on OS VALUE and than look for the word
in the "fruits" while listing them.
Read on about arrays
Regards Jan
Umesh wrote:
> Hi Gurus,
>
> I want to retrieve a node with a specific attribute and value of a XML using
> PHP.
>
> e.g.
>
> <?xml version="1.0" ?>
> <CHANNEL
> HREF="http://www.acme.com/intropage.htm">
> <TITLE> A Software Distribution Channel</TITLE>
> <SOFTPKG
> HREF="http://www.acme.com/aboutsoftware.htm"
> Version="1,0,0,0">
> <IMPLEMENTATION>
> <OS VALUE="WinNT"><OSVERSION VALUE="4,0,0,0" /> </OS>
> <OS VALUE="Win95" />
> <PROCESSOR VALUE="x86" />
> <CODEBASE HREF="http://www.acme.com/test.cab"
> />
> </IMPLEMENTATION>
> </SOFTPKG>
> </CHANNEL>
>
> suppose I want to retrieve data in only OS node with attribute VALUE and
> having value "WinNt".
>
> Can anybody guide how can I do it?
>
> Thanking you in anticipation.
>
> Regards
>
> Umesh.
> *****************************
> Umesh A. Deshmukh.
> Manas Solutions Pvt. Ltd.
> umesh@manas-solutions.com
> http://www.manas-solutions.com
> Ph. : 91+020+4006358,4223991/92
> *****************************
>
>