That works beautifully! Thanks Andy and Mark. Now I
just have to figure out how to do this generally for
all documents. But maybe I should study a bit first;)

Regards,
Pete
> 
> I think you have to add a namespace declaration to
> that eg...
> 
> SAXBuilder builder = new SAXBuilder();
> Document doc = builder.build( url );
> XPath xpath = new JDOMXPath( xpathExp );
> 
> 
> then ....
> 
>   SimpleNamespaceContext nsContext = new
> SimpleNamespaceContext();
>    nsContext.addNamespace( "ino","
> http://namespaces.softwareag.com/tamino/response2";);
>    nsContext.addNamespace( "xql",
> "http://metalab.unc.edu/xql/";);
>    xpath.setNamespaceContext(nsContext);
> 
> Also note that the namespace is declared by the URI,
> so this must be the same in
>  both Jaxen & the XML
> The actual prefix(eg "ino" can be different. )
> 
> HTH
> 
> Lordy
> 
>  

Beskyt din computer mod virus og misbrug! Læs mere i Yahoo! Sikkerhedscenter på 
www.yahoo.dk/sikkerhedscenter


-------------------------------------------------------
This sf.net email is sponsored by: 
To learn the basics of securing your web site with SSL, 
click here to get a FREE TRIAL of a Thawte Server Certificate: 
http://www.gothawte.com/rd522.html
_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to