[jdom-interest] Question about selecting nodes with XPath
Clemens Eisserer
linuxhippy at gmail.com
Tue Jan 31 12:18:20 PST 2006
Hello,
First of all thanks a lot for jdom, its a really well designed API and
its fun to work with it.
I would like to use XPath for just selecting the
"<a:displayname>"-nodes however I tried several ways to do so and I
only get a List with size 0 so I guess my query is somehow malformed.
I tried "displayname", "/displayname", "a:displayname",
"/a:displayname" however none worked.
It would be really great if somebody could give me just a short hint
whats wrong.
Thank you in advance, lg Clemens
This is an exmaple XML-File I would like to query:
<?xml version="1.0"?><a:multistatus
xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
xmlns:c="xml:" xmlns:a="DAV:"><a:response><a:href>https://10.0.0.5/exchange/user2/Kalender/</a:href><a:propstat><a:status>HTTP/1.1
200 OK</a:status><a:prop><a:displayname>Kalender</a:displayname></a:prop></a:propstat></a:response><a:response><a:href>https://10.0.0.5/exchange/user2/Kalender/appointment2.eml</a:href><a:propstat><a:status>HTTP/1.1
200 OK</a:status><a:prop><a:displayname>appointment2.eml</a:displayname></a:prop></a:propstat></a:response><a:response><a:href>https://10.0.0.5/exchange/user2/Kalender/{36BB053F-DF6D-4BA4-8F04-87F04B6E3031}.EML</a:href><a:propstat><a:status>HTTP/1.1
200 OK</a:status><a:prop><a:displayname>{36BB053F-DF6D-4BA4-8F04-87F04B6E3031}.EML</a:displayname></a:prop></a:propstat></a:response><a:response><a:href>https://10.0.0.5/exchange/user2/Kalender/{144246DB-94E9-46E8-981E-BEACB7A2012F}.EML</a:href><a:propstat><a:status>HTTP/1.1
200 OK</a:status><a:prop><a:displayname>{144246DB-94E9-46E8-981E-BEACB7A2012F}.EML</a:displayname></a:prop></a:propstat></a:response></a:multistatus>
More information about the jdom-interest
mailing list