Working with XML

In this recipe, we explore how to use the XML plugin to create and phrase XML structures with Orchestrator. XML is a good way to exchange complex information between systems.

Getting ready

We don't need anything special; however, we need to understand the basics of XML. Take a look at http://www.w3schools.com/xml/ .

You should be familiar with the JavaScript concept of functions (see the introduction to this chapter).

How to do it...

This recipe is split into two parts; first, we create an XML document, and then phrase an XML document.

Creating an XML document

This is the rather more complex part; however, we will go through it slowly.

We will create a simple XML document that looks like this:

<?xml version="1.0" encoding="UTF-8"> <MailMessages> ...

Get VMware vRealize Orchestrator Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.