Skip to content

qie.parseXMLString

Signature: qie.parseXMLString(value, encoding*)

Returns: XML Message xmlMessage - the associated XML message object

Parse the input string as XML and return the associated message object.

Note

The return value CAN NEVER be assigned to the bound-in message object; it should be assigned to a locally declared variable.

Parameters

Type Name Description Default
String value the source string to be parsed
String encoding* (optional) the character encoding for this message Source Node encoding

Example

var xmlString = `
<people>
   <person>
      <name>Nate</name>
   </person>
</people>
`;
var xmlMessage = qie.parseXMLString(xmlString);