XML Parser

Overview

Converts an XML string into a JSON string. In combination with a!fromJson, this allows for parsing an XML string into an Appian Dictionary.

Key Features & Functionality

Update 1.0.4

  • Removes old dependencies

Update 1.0.2

  • Adds 'removeNamespace' 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 'stringsOnly' optional boolean parameter to xmltojson which force casts all XML values to strings, rather than trying to parse booleans and numbers.
      fn!xmltojson
Anonymous
Parents
  • Getting the following error:

    Expression evaluation error at function 'xmltojson': Could not parse XML: Missing ';' in XML entity: & at 32 [character 33 line 1]

    Attaching the code for the given error:
    xmltojson(
    "<StatusDesc>Operations Review & Setup In Progress</StatusDesc>",
    true,
    true
    )
    Please advice.
Comment
  • Getting the following error:

    Expression evaluation error at function 'xmltojson': Could not parse XML: Missing ';' in XML entity: & at 32 [character 33 line 1]

    Attaching the code for the given error:
    xmltojson(
    "<StatusDesc>Operations Review & Setup In Progress</StatusDesc>",
    true,
    true
    )
    Please advice.
Children
No Data