• Post Reply Bookmark Topic Watch Topic
  • New Topic

Axes question

Rakesh Gudur
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What will following expressions evaluate to for the given XML document?
count//child::chapter@name="introduction"]/child::title/following-sibling::* )
-------------------XML Document----------------------
<author> abc </author>
<chapter name="introduction">
<title>chap 1</title>
<chapter name="starting">
<title>chap 2 </title>
A: 1
B: 2
C: 3
D: 4
E: error
Can any one explain the answer. The answer given in the XML Whiz is 1
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!