xml take items with same id

[ad_1]

This is sample of xml i want to take from filter group id =6 material the value wood,steel,fire from filter group id=7 color white,black and for feature group id=8 feature1,feature2. I use wp all import and i want to make it attributes!

<Filters>
<filter>
<group id=”6″>Materials</group>
<value id=”35″>Wood</value>
</filter>
<filter>
<group id=”6″>Materials</group>
<value id=”36″>Steel</value>
</filter>
<filter>
<group id=”6″>Materials</group>
<value id=”37″>Fire</value>
</filter>
<filter>
<group id=”7″>Color</group>
<value id=”1″>White</value>
</filter>
<filter>
<group id=”7″>Color</group>
<value id=”2″>Black</value>
</filter>
<filter>
<group id=”8″>Feature</group>
<value id=”63″>Feature 2</value>
</filter>
<filter>
<group id=”8″>Feature</group>
<value id=”64″>Feature 1</value>
</filter>
</Filters>

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer