Subject: [xsl] Passing XML Tree to a java method as String. From: "Omar Saeed" <omar.saeed.email@xxxxxxxxx> Date: Fri, 14 Jul 2006 10:18:25 +0100 |
I have a SOAP Message in the XSL template and need to pass everything inside the Body element to a java method that takes a String.
When I do the following: <xsl:template match="/"> <xsl:variable name="myxml"> <xsl:copy-of select="env:Envelope/env:Body/*" /> </xsl:variable>
<xsl:value-of select="JavaClassRef:javaMethod($myxml)" /> </xsl:template>
In the javaMethod I get only the values inside the elements passed. How can I pass everything including the elements that are inside the Body element as String (the entire XML structure as String)? Do I need to convert the XML to String? Or is it more a question of deserializing the XML ? How do I do this, are there any libraries that provide this?
Any help much appreciated. Omar
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] A beef with XSLT Sometime, David Carlisle | Thread | Re: [xsl] Passing XML Tree to a jav, Mukul Gandhi |
Re: [xsl] A beef with XSLT Sometime, Nic James Ferrier | Date | AW: [xsl] Re: RSS 2.0 to RSS 1.0 X, Huditsch, Roman \(LN |
Month |