PHP-XML problem
| From: | umesh | Date: | Mon, 15 Oct 2001 04:58:02 +0000 |
| Subject: | PHP-XML problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-71062@lists.php.net to get a copy of this message | ||
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
*****************************