homepage Welcome to WebmasterWorld Guest from 54.167.138.53
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

    
Selecting same attributes?
Selecting same attributes
esas_nefret




msg:3970741
 6:30 pm on Aug 12, 2009 (gmt 0)

I am newbee to XML.

I have an xml file which is complicated (for me). I want to get all data which has same attribute.. But I am sticked there..

I just want to display all the data which has "category kod 1012" and its elements and attributes also.

It does not matter to use whether JS or PHP... But I prefer Php.
Could you please help me..

Here is the xml:


<CATEGORY KOD="1012" DESCRIPTION="Security">
<GROUP KOD="1250" DESCRIPTION="CCTV Camera">
<PRODUCT KOD="IC-202W-G1" PNAME="GKB IP CAMERA - IC SERIES(yellow)" MARK="GKB" GLOBALKOD="IC-202W-G1" COMPANYKOD="IDX">
<TAX>KDV18</TAX>
<PICTURE>IC-202W-G1.jpg</PICTURE>
<FEATURES>
<OZL DESCRIPTION="The description here" DEGER="The deger here" />
<OZL DESCRIPTION="The description here" DEGER="The deger here" />
<OZL DESCRIPTION="The description here" DEGER="The deger here" />
</FEATURES>
</PRODUCT>
<PRODUCT KOD="IC-202W-G2" AD="GKB IP CAMERA - IC SERIES (black)" MARKA="GKB" GLOBALKOD="IC-202W-G2" SIRKETKOD="IDX">
<TAX>KDV18</TAX>
<PICTURE>IC-202W-G2.jpg</PICTURE>
<FEATURES>
<OZL DESCRIPTION="Network" DEGER="Ethernet 10BaseT/100BaseTX" />
</FEATURES>
</PRODUCT>
</GROUP>
</CATEGORY>

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved