XML Response File

Before we examine how to implement the {parse-xml} method, let's consider the XML format that is being returned from the server-side process. The code developed has a direct correlation with the XML file, specifically in the element names that data is captured for.

For our VMS Motors application, the server-side logon component returns an XML document as defined in Figure 4-3.

If you followed the installation instructions described in Chapter 2, this file should have been created and saved as c:\enterprise curl\xml\logon.xml. If you chose instead to store the XML documents on your Web server, then this file should have been saved in a directory called XML off the ENT-CURL root.

Figure 4-3. Logon XML message.
 <?xml version='1.0'?><ENT-CURL.LOGON><user-name>Aidan ...

Get Enterprise Curl 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.