5.5.2

Table Of Contents
Using the XML Plug-In 8
You can use the XML plug-in to run workflows that create and modify XML documents.
The XML plug-in adds an implementation of a Document Object Model (DOM) XML parser to the
Orchestrator JavaScript API. The XML plug-in also provides some sample workflows to demonstrate how
you can create and modify XML documents from workflows.
Alternatively, you can use the ECMAScript for XML (E4X) implementation in the Orchestrator JavaScript
API to process XML documents directly in JavaScript. For an E4X scripting example, see Developing with
VMware vCenter Orchestrator.
For information about E4X, go to the Web site of the organization that maintains the ECMA-357 standard.
Running the XML Plug-In Sample Workflows
You can run the XML plug-in sample workflows from the Orchestrator client to create and modify XML
documents for testing purposes.
Because the workflows can create, read, or modify files, you must have sufficient access rights to the
working directory.
Orchestrator has read, write, and execute rights to a folder named orchestrator, at the root of the server
system. Although workflows have permission to read, write, and execute in this folder, you must create the
folder on the server system.
You can allow access to other folders by changing the settings for server file system access from workflows
and JavaScript. See Installing and Configuring VMware vCenter Orchestrator, Setting Server File System Access
from Workflows and JavaScript.
n
Create a Simple XML Document on page 64
You can run a workflow from the Orchestrator client to create a simple XML document for testing
purposes.
n
Find an Element in an XML Document on page 64
You can run a workflow from the Orchestrator client to find an element in the XML created by the
Create a simple XML document workflow.
n
Modify an XML Document on page 65
You can run a workflow from the Orchestrator client to modify the XML that the Create a simple XML
document workflow creates.
n
Create an Example Address Book from XML on page 65
You can run a workflow from the Orchestrator client to create an address book for testing purposes.
VMware, Inc.
63