Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in XPATH - preceding, following

 
Shoba Ramachandran
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
When I try to bring all preceding-siblings for Sku element, nothing returns

Shouldn't it return the following
<Description >and <Price> elements

Could somebody pl. explain did I understand here.
Thanks
Shoba
 
Ron Newman
Ranch Hand
Posts: 1056
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If <Sku> is the first element of a <LineItem>, it won't have any preceding siblings. Maybe you should be looking for following-siblings instead?
[ November 05, 2002: Message edited by: Ron Newman ]
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or you can try preceding axis instead.
BTW, no trailing 's' at preceding-sibling or following-sibling axis names. Even it seems no filling blank questions in IBM141.
[ November 06, 2002: Message edited by: Roseanne Zhang ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic