By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,137 Members | 1,430 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,137 IT Pros & Developers. It's quick & easy.

How can i filter information from only one category with Xpath

P: 1
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:

Expand|Select|Wrap|Line Numbers
  1. <data>
  2. -<node>
  3.    <name>​1 Rad Namnsmycke - Original &​quot;​Dam&​quot​;</name>
  4.    <category>​Namnsmycken​</category>
  5.    <sku>​30​</sku>
  6.    <ean/>
  7. -<description>
  8. ​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...
  9. </description>
  10.    <model/>
  11.    <brand/>
  12.    <price>​350.​00​</price>
  13.    <shippingprice/>
  14.    <currency>​SEK​</currency>
  15. -<producturl>
  16. ​http​://​click.​adrecord.​com​/?​p=​xxx&​amp;​c=​xxxxxx&​amp;​url=​http​://​http://www.​butikstylish.&#820...8203;30​
  17.   </producturl>
  18. -<graphicurl>
  19. ​http​://​www.​butikstylish.​se/​img/​p/​2/​2-​large.​jpg​
  20.    </graphicurl>
  21.    <instock>​1​</instock>
  22.    <instockqty/>
  23.    <deliverytime/>
  24.    <regularprice>​350.​00​</regularprice>
  25.    <gender/>
  26. </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.

Feb 4 '13 #1
Share this Question
Share on Google+
1 Reply

P: 94
What dev language(c#, are you using?
Feb 14 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.