Unsupported content This version of the product has reached end of support. The documentation is available for your convenience. However, you must be logged in to access it. You will not be able to leave comments.

XML utilities


This topic describes the common XML utilities available with BMC Atrium Orchestrator Content.

Important

The XML utilities are compatible only with BMC Atrium Orchestrator Platform 7.9 and later. On the BMC Atrium Orchestrator peers, the json-20160316j6.jar file is located in the /tomcat/webapps/baocdp/WEB-INF/lib folder.

Convert JSON to XML

This utility converts JSON to XML. To use this utility, the json.jar file must be installed on your BMC Atrium Orchestrator peers and BMC Atrium Orchestrator Development Studio.

Note

While running the Convert JSON to XML utility, if the conversion does not occur and the workflow returns the same JSON-formatted string, this may be due to an incorrect library function being called. For more information on resolving this issue, see the BMC Knowledge Article 000131175: Atrium Orchestrator's "Convert JSON to XML" workflow returns JSON, not XML

Workflow input elements

Input element

Description

Required

JSON

Specifies the JSON to be converted into XML

Yes

Workflow output elements

Output element

Description

XML

Specifies the XML output

Convert XML to JSON

This utility converts XML to JSON. The XML namespaces are striped to be converted to JSON.

Note

For XML with attributes, use the Convert XML Attributes to Elements workflow to convert XML attributes to elements first, and then convert to JSON.

Workflow input elements

Input element

Description

Required

XML

Specifies the XML to be converted into JSON

Yes

Workflow output elements

Output element

Description

JSON

Specifies the JSON output

Convert XML Attributes to Elements

This utility converts XML attributes to elements before converting it to JSON. 

Workflow input elements

Input element

Description

Required

XML

Specifies the XML whose attributes need to be converted into elements

Yes

Workflow output elements

Output element

Description

XMLNoAttribute

Specifies XML with no attributes

Strip Namespaces

This utility strips namespaces from the XML document. 

Workflow input elements

Input element

Description

Required

XML

Specifies the XML document from which to strip the namespaces

Yes

Workflow output elements

Output element

Description

XML

The submitted XML without namespaces

XML String to XML

This utility strips the XML headers and doctype elements from the XML strings to XML.

Workflow input elements

Input element

Description

Required

XML String

Specifies the formatted XML string

Yes

Workflow output elements

Output element

Description

XML

The submitted XML without the XML strings

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*