This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt in XPATH - preceding, following  RSS feed

 
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
Boost this thread!