copy-of vs value-of

B

Baldo

i've got:

<root>
<text>123<br/>ASD
</text>
</root>

copy-of select="root/text" :

<text>123<br/>ASD</text>
----------------------------
value-of select="root/text" :

123 ASD
-----------------------------

but I wanna

123 <br/> ASD

as result.

The source is blocked (I cannot change it creating CDATA o something else)
 
P

Philippe Poulard

Baldo said:
i've got:

<root>
<text>123<br/>ASD
</text>
</root>

copy-of select="root/text" :

<text>123<br/>ASD</text>
----------------------------
value-of select="root/text" :

123 ASD
-----------------------------

but I wanna

123 <br/> ASD

as result.

The source is blocked (I cannot change it creating CDATA o something else)

try this :
copy-of select="root/text/node()"

--
Cordialement,

///
(. .)
-----ooO--(_)--Ooo-----
| Philippe Poulard |
-----------------------
 

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,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top