In this step, you will create three text files and save them in the Tutorial folder:
\\<SRV400>\LICComposer\lic\Tutorial |
Save the file using the Save as type: All Files option so that you can specify the CSV file extension. Give it a name such as iiiTUTEMPNO.csv.
| Note: Although the file is a Comma Separated File (CSV), you will not see commas because there is only one data column. |
In a similar way, create the Response XML sample. The contents of iiiTUTEMPDET.xml will be like this:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE Employees SYSTEM "iiiTUTEMPDET.dtd" > <Employees> <Employee> <EmployeeNumber>100066</EmployeeNumber> <LastName>Coleman</LastName> <FirstName>Briar</FirstName> </Employee> <Employee> <EmployeeNumber>100554</EmployeeNumber> <LastName>Dixon</LastName> <FirstName>Reed</FirstName> </Employee> </Employees> |
| Change the iii in <!DOCTYPE Employees SYSTEM "iiiTUTEMPDET.dtd" > to your initials. |
Create the response DTD file. The DTD file is used to describe the tags of XML files:
<!ELEMENT Employees (Employee)> <!ELEMENT Employee (EmployeeNumber,FirstName,LastName,Address1,Address2,Address3,PostCode,Department)> <!ELEMENT EmployeeNumber (#PCDATA)> <!ELEMENT LastName (#PCDATA)> <!ELEMENT FirstName (#PCDATA)> <!ELEMENT Address1 (#PCDATA)> <!ELEMENT Address2 (#PCDATA)> <!ELEMENT Address3 (#PCDATA)> <!ELEMENT PostCode (#PCDATA)> <!ELEMENT Department (#PCDATA)> |
Save the file as iiiTUTEMPDET.dtd ensuring that the filename extension is preserved.
| This file's name must be the same name as specified in the DOCTYPE in the xml file just created. |