XML Parser

Provides an expression function, fn!xmltojson that converts an XML string into a JSON string. In combination with a!fromJson, this allows for parsing an XML string into an Appian Dictionary.

Update 1.0.2

  • Adds a new optional boolean parameter to xmltojson which strips all namespace prefixes and xmlns declaration tags

Update 1.0.1

Updated to the latest org.json library

  • No longer parses numbers leading with 0 as octet numbers
  • Adds a new optional boolean parameter to xmltojson which force casts all XML values to strings, rather than trying to parse booleans and numbers.

Parses an XML string into a JSON string.

Anonymous
  • , there isn't currently any documentation outside of the rule instructions. You can call the function by using "fn!xmltojson", and pass in the following parameters:

    xml: The string containing the xml to parse

    stringsOnly (Boolean): If true, all numbers and booleans are parsed as strings, useful if you have large or very precise numbers you don't want automatically parsed when converting from JSON to an Appian object.

    removeNamespace (Boolean): If true, all namespaces will be stripped and xmlns tags are removed (simplifies the data returned)

  • Is there any Documentation available for this on how to use this