XPath: Selecting namspace node

T

Tjerk Wolterink

Hello all,

I've written an XML file that looks a bit like this:

<a>
<space:b>
content 1
</space:b>
<b>
content 2
</b>
</a>


Well know i am writing a XSL file to do some kind of transforamtion.
But how do i select node: space:b in xpath?

node b is selected with xpath with:

/a/b

But how do i select node space:b?
The node b in namespace space.
 
T

Tjerk Wolterink

Tjerk said:
Hello all,

I've written an XML file that looks a bit like this:

<a>
<space:b>
content 1
</space:b>
<b>
content 2
</b>
</a>


Well know i am writing a XSL file to do some kind of transforamtion.
But how do i select node: space:b in xpath?

node b is selected with xpath with:

/a/b

But how do i select node space:b?
The node b in namespace space.

problem solved!
See http://bobcat.webappcabaret.net/javachina/faq/xpath_01.htm#xpath_Q15
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top