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

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,830
Latest member
HeleneMull

Latest Threads

Top