Subject: Re: [xsl] Convert a node-set to a string From: David Frey <dpfrey@xxxxxxx> Date: Fri, 25 Mar 2011 11:47:10 -0700 |
David Frey wrote:
The problem I think I am having is that my extension function expects a string, but I am passing it a node-set. I want to convert the node-set to a string rather than changing the extension function to accept a node-set as a parameter. Is this possible?
Well what kind of string do you want, do you want to serialize the nodes back to XML markup? That has been done, for instance http://lenzconsulting.com/xml-to-string/.
String extensionFunction(String inputXml) { MyObject x = new MyObject(); x.unmarshal(inputXml); return x.someComplexOperation(); }
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Convert a node-set to a s, Martin Honnen | Thread | Re: [xsl] Convert a node-set to a s, Brandon Ibach |
Re: [xsl] Convert a node-set to a s, Wendell Piez | Date | Re: [xsl] Convert a node-set to a s, David Frey |
Month |