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> <Mail> <From>test@test.net</From> <Subject>Test message</Subject> <Content Date="10/12/12">This is a test message </Content> &...