  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Question about selecting nodes with XPath | Question about selecting nodes with XPath 2006-01-31 - By Clemens Eisserer
Back 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>
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
|
|
 |