Thanks Mark,

But that doesn’t work either. Could it be my Java code
(se below) that doesn’t show attributes. I am grasping
for straws here;)

Regards,
Pete

String url      =
"I:\\ir-brugere\\pelor\\dk\\wmdata\\xml\\test6.xml";
String xpathExp =
"/ino:response/xql:result/metadata/@ino:id";

SAXBuilder builder = new SAXBuilder();
Document doc = builder.build( url );
XPath xpath = new JDOMXPath( xpathExp );
List results = xpath.selectNodes( doc );
Iterator resultIter = results.iterator();

while ( resultIter.hasNext() )
{
    System.out.println( resultIter.next() );
}

> Hi Peter,
> ino:id is an attribute, so you need to get it using
> this
> xpath-expression:
> /ino:response/xql:result/metadata/@ino:id
> 
> - Mark


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