Sorry for replying this late but in case your still interested?

> Firstly, is it possible not just to search for elements using XPath
> expressions, but also to output the XPath for the current element?
> According to what I read already it should be possible, but I just
> want to verify this.

Yes, this is possible, using the Node.getPath() and
Node.getUniquePath() methods.

> Secondly, is it possible to navigate inside a DOM (when initializing a DOM
> reader) like someone could do in an ordinary implementation like org.w3c.dom?

Yes, you can.

> So is there a chance to access elements by their name only (getElementById)?
> I think this is not really a problem since it could also be solved by using 
> XPath
> expression, but can I reach the child elements of the current element? For 
> e.g.
> getLastChild()?

There is no equivalent of the getElementById() method, also the XPath
id() method does not work but you can perform simple searches (using
element() and elements() methods) to find specific elements.

Regards,
Edwin
--
http://www.edankert.com/

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to