Hi,

I want to select a singleNode by Xpath with

Node member = this.e.selectSingleNode("/association/member[topicRef/@xlink:href='#TMSWSS03']");

It worked, when there was no namespace xlink for the @href attribute, but with xlink namespace it does not work.

How can i specifiy a namespace when selecting a single node.

this.e.asXML() is as follow:
-------------------------------------------------------------------------------------------------------------------

<association xmlns:exist="http://exist.sourceforge.net/NS/exist"; exist:id="[EMAIL PROTECTED]" exist:source="/db/xtm4xmldb/ivsData.xtm/assocs/[EMAIL PROTECTED]" id="[EMAIL PROTECTED]">
<instanceOf>
<topicRef xmlns:xlink="http://www.w3.org/1999/xlink"; xlink:href="ivsTypes.xtm#VERANSTALTET">
</topicRef>
</instanceOf>


<member>
<roleSpec>
<topicRef xmlns:xlink="http://www.w3.org/1999/xlink"; xlink:href="ivsTypes.xtm#PERSON">
</topicRef>
</roleSpec>
<topicRef xmlns:xlink="http://www.w3.org/1999/xlink"; xlink:href="[EMAIL PROTECTED]">
</topicRef>
</member>


<member>
<roleSpec>
<topicRef xmlns:xlink="http://www.w3.org/1999/xlink"; xlink:href="ivsTypes.xtm#VERANSTALTUNG">
</topicRef>
</roleSpec>
<topicRef xmlns:xlink="http://www.w3.org/1999/xlink"; xlink:href="#TMSWSS03">
</topicRef>
</member>


</association>




------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to