|
Hi;
If I call: Node node = doc.selectSingleNode( "/slideshow[@title]" ); It does not return the attribute for title - it returns the slideshow element. I then have to do node.valueOf to get the attribute. It seems logical to me that if I request an attribute in my xpath command, that I should get the attribute back as the node. And if I can't
do that, is there any easy way to select the attribute part of an xpath request
out? I get these strings from users so I have to parse it out in this
case.
????? - thanks - dave |
- Re: [dom4j-user] xpath selectSingleNode to get an attribute David Thielen
- Re: [dom4j-user] xpath selectSingleNode to get an attr... Igor Fedulov
- Re: [dom4j-user] xpath selectSingleNode to get an attr... Silvain Piree
- Re: [dom4j-user] xpath selectSingleNode to get an attr... James Strachan
- Re: [dom4j-user] xpath selectSingleNode to get an ... Markus Spath
- Re: [dom4j-user] xpath selectSingleNode to get... James Strachan
