Click to See Complete Forum and Search --> : getting an xml from an inner node


pelegk1
05-08-2007, 12:03 PM
i have xml like this :
<root>
<sub1>
....
</sub1>
<data>
<xml1>
<x1>aaa</x1>
<x2>bbb</x2>
</xml1>
</data>
</root>

and i am trying to get from the above xml the "xml1" xml.
i do this by :

<xsl:template match="xml1">
<xsl:variable name="Value2">
<xsl:value-of select="."/>
</xsl:variable>
<xsl:value-of disable-output-escaping="yes" select="translate ( $Value2, ' &#xD;&#xA;', '')"/>
</xsl:template>


but instead of getting the xml1 in 1 line i recive only the nodes value like :
aaabbb

what can i do?
thnaks in advance
peleg