[jdom-interest] XPath Classes

Victor Toni victor.toni at ebuconnect.de
Tue Aug 30 14:24:44 PDT 2005


Bradley S. Huffman wrote:

>Victor Toni writes:
>  
>
>>I guess these are relicts from the time where JDOM had not the Content 
>>class as a parent for element, PI, comment, etc.
>>    
>>
>
>Nope, it's because a XPath function can return more than nodes in from
>document. They can also return a number or a string.
>  
>
Correct, but the context should be a node. As I just discovered 
Attribute has no common super class with Content nor is it a subclass of 
it so this won't work as expected.

Victor

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20050830/1d995c0f/attachment.htm


More information about the jdom-interest mailing list