[jdom-interest] Mixed Content selection?

Jason Long jason at jmlie.com
Sat Nov 10 19:54:41 PST 2001


Can someone help me with a quick xpath question?

<root>
  <a>
    <b>Text 1</b>
  </a>
  Text 2
  <br />
  Text 3 
  <a>
    <b>Text 5</b>
  </a>
  Text 4
</root>

I have been using jdom with jaxen and would appreciate some xpath advice.  
How can I access text that is not directly in a tag by itself?
For example what would be the syntax to select "Text 2" or "Text 3"?

I would appreciate any help that can be given.

Jason Long
JML Internet Enterprises - www.jmlie.com
BS Physics, MS Chemical Engineering 



More information about the jdom-interest mailing list