Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do I write an Xpath expression that selects two nodes?

 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm using Java 6. How do I write an path expression that selects two elements? For example, I have each of these expressions …



and each on their own selects an element from the part of the DOM I want. However, if I try and combine them like so …



I get the following exception …



Thanks, - Dave
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic