[jdom-interest] XPath and Namespaces

Carsten Karkola carsten.karkola at mailbox.tu-dresden.de
Fri Jul 26 04:44:51 PDT 2002

Thank you for your quick response, but how do I get the b nodes in the 
following document:

<?xml version="1.0" encoding="ISO-8859-1"?>
  xsi:schemaLocation="http://www.tu-dresden.de/bau/test test.xsd">

What should I use instead of
 org.jaxen.XPath path = new JDOMXPath("//b");
 List results = path.selectNodes(doc);

to get all the <b> elements. How should I add the namespace, because 
without the path.addNamespace I get also no results.

Regards, Carsten

More information about the jdom-interest mailing list