sanjeev_mca
asked on
How to get Full XML in a xsl:variable
Hi Experts,
I have an xml as :
<Test>
<TestNode1 name="node1"> This is test node 1</TestNode1>
<TestNode2 name="node2"> This is test node 2</TestNode2>
</Test>
My Question :
Is this possible to get this XML in a xsl:variable ?
When I use <xsl:variable name="nodes" select="/"/> it gives me just the contents not the nodes.
Thanks!
Sanjeev
I have an xml as :
<Test>
<TestNode1 name="node1"> This is test node 1</TestNode1>
<TestNode2 name="node2"> This is test node 2</TestNode2>
</Test>
My Question :
Is this possible to get this XML in a xsl:variable ?
When I use <xsl:variable name="nodes" select="/"/> it gives me just the contents not the nodes.
Thanks!
Sanjeev
ASKER
That's true, but when i pass this variable to a Java method, it looses its tags and only contents are passed.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window