View Single Post
  #10 (permalink)  
Old November 29th, 2007, 09:37 AM
samjudson's Avatar
samjudson samjudson is offline
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Basically you're xpath looks like this:

//bank[text()='A'] and ../branch[text()='B']

The problem is that the 'and' is not inside a predicate (i.e. square brackets []).

What are you trying to return? bank elements, or branch elements?

Can we see a segment of your input XML? Is branch the parent of bank, or vice versa?



/- Sam Judson : Wrox Technical Editor -/
Reply With Quote