Integration Cloud 6.6.0 | Built-In Services | Built-In Services | xmlStringToXMLNode
 
xmlStringToXMLNode
Converts a String, byte[], or InputStream containing an XML document to an XML node.
An XML node is a representation of an XML document that can be consumed by Integration Cloud.
Input Parameters
xmldata
String Optional. String containing the XML document to convert to an XML node.
Note:
If you specify xmldata, do not specify $filedata or $filestream.
$filedata
byte[ ] Optional. byte[ ] containing the XML document to convert to an XML node.
Note:
If you specify $filedata, do not specify xmldata or $filestream.
$filestream
java.io.InputStream Optional. InputStream containing the XML document to convert to an XML node.
Note:
If you specify $filestream, do not specify xmldata or $filedata.
encoding
String Optional. Character encoding in which text is represented. Specify UTF-8 for XML files and ISO-8859-1 for HTML files. To have the parser attempt to detect the type of encoding, specify autoDetect (which is the default, if encoding is not specified).
isXML
String Optional. Flag specifying whether the input document is XML or HTML. (xmlStringToXMLNode must know this so that it can parse the document correctly.) Set to:
*autoDetect to parse the document based on its type. When you use this option, xmlStringToXMLNode detects the document's type based on its document type declaration as indicated by a <!DOCTYPE...\> or <?XML...\> tag. If it cannot determine the document type, it parses it as HTML. This is the default.
*true to parse the document as XML.
*false to parse the document as HTML.
Output Parameters
node
com.wm.lang.xml.Node XML node representation of the XML document in xmlData. This object can be used as input to webMethods services that consume XML nodes.
Usage Notes
The input parameters xmldata, $filedata, and $filestream are mutually exclusive. Specify only one of the preceding parameters. Integration Cloud checks the parameters in the following order: $filedata, $filestream, and xmldata, and uses the value of the first parameter with a value.