How can i filter information from only one category with Xpath

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eadora
    New Member
    • Feb 2013
    • 1

    How can i filter information from only one category with Xpath

    Hi
    This is my first post here. I really hope i can speak the same language as you data experts.

    What i'd like to do is select products in only one category from a .xml file. The xpath structure looks like this:

    Code:
    <data>
    -<node>
       <name>​1 Rad Namnsmycke - Original &​quot;​Dam&​quot​;</name>
       <category>​Namnsmycken​</category>
       <sku>​30​</sku>
       <ean/>
    -<description>
    ​Ett personligt smycke i ä​kta sterlingsilver. Komplett med en 1,​5 mm kull​ä​nkskedja i valfri l​ä​ngd. M​å​tten p​å brickan varierar, beroende p​å textval, men...
    </description>
       <model/>
       <brand/>
       <price>​350.​00​</price>
       <shippingprice/>
       <currency>​SEK​</currency>
    -<producturl>
    ​http​://​click.​adrecord.​com​/?​p=​xxx&​amp;​c=​xxxxxx&​amp;​url=​http​://​[url]www.​butikstylish.​se/​product.​php?​id_product=​30​[/url]
      </producturl>
    -<graphicurl>
    ​http​://​[url]www.​butikstylish.​se/​img/​p/​2/​2-​large.​jpg​[/url]
       </graphicurl>
       <instock>​1​</instock>
       <instockqty/>
       <deliverytime/>
       <regularprice>​350.​00​</regularprice>
       <gender/>
    </node>
    The file contains 421 products in 23 categories and i'd like to just import products from one category.

    I hope i made my question clear enough and looking forward for your assistans.

    Thanks!
    Last edited by Rabbit; Feb 4 '13, 10:54 PM. Reason: Please use code tags when posting code or XML.
  • Mikkeee
    New Member
    • Feb 2013
    • 94

    #2
    What dev language(c#, vb.net) are you using?

    Comment

    Working...