J
jorgedelgadolopez
Hi,
I have been experimenting and searching for information on how to
retrieve the following using XPath.
I may have three types of XML:
<n>this is some text</n>
OR
<n>
<p>this is some text</p>
</n>
OR
<n>
<p>this is some text</p>
<p>some more text</p>
</n>
OR
<n>
this is some text
<p>some more text</p>
</n>
The result I need includes ALL of the children and/or text but NOT the
node element <n>.
Some of the tested xpath queries
<xsl:copy-of select="child::text()"/>
<xsl:copy-of select="child::*"/>
<xsl:copy-of select="self::*"/>
<xsl:copy-of select="self::node()"/>
<xsl:copy-of select="self::child"/>
and of course <xsl:copy-of select="."/> which returns <n>.
Any ideas?
/ jorge
I have been experimenting and searching for information on how to
retrieve the following using XPath.
I may have three types of XML:
<n>this is some text</n>
OR
<n>
<p>this is some text</p>
</n>
OR
<n>
<p>this is some text</p>
<p>some more text</p>
</n>
OR
<n>
this is some text
<p>some more text</p>
</n>
The result I need includes ALL of the children and/or text but NOT the
node element <n>.
Some of the tested xpath queries
<xsl:copy-of select="child::text()"/>
<xsl:copy-of select="child::*"/>
<xsl:copy-of select="self::*"/>
<xsl:copy-of select="self::node()"/>
<xsl:copy-of select="self::child"/>
and of course <xsl:copy-of select="."/> which returns <n>.
Any ideas?
/ jorge