<form version="1.0">
<form>
<templatedetail>
<templatename>Job Application</templatename>
<templateid>1</templateid>
<templatecreated>15 May 2005 13:00</templatecreated>
<templateownerid>1</templateownerid>
<templateownername>Form Creator</templateownername>
<formownerid>1</formownerid>
<formownername>Some User</formownername>
<actionbyid>2</actionbyid>
<actionbyname>Some other user</actionbyname>
<whenactioned>16 May 2005 13:00</whenactioned>
</templatedetail>
<formdetail id="1">
<datalist>
<data>
<key>16 digits unique key</key>
<value>Ethuongmai</value>
<name>First Name</name>
<type>String</type>
</data>
<data>
<key>16 digits unique key</key>
<value>16 May 2005</value>
<name>Leave Date</name>
<type>Date</type>
</data>
<data>
<key>16 digits unique key</key>
<value>15</value>
<name>Number of Days</name>
<type>Numeric</type>
</data>
<data>
<key>16 digits unique key</key>
<value>I want a long holiday after a year of hard work</value>
<name>Reason</name>
<type>FreeText</type>
</data>
<data>
<key>16 digits unique key</key>
<value>UTF8 Encoded data</value>
<name>Attachment</name>
<type>File</type>
</data>
</datalist>
</formdetail>
</form>
</form>
The following contain sample C# code segment to save the posted XML file from an external application. The same principal can be used to processed the data contained in the XML file.
//saves the file
try
{
if (Request.Files.Count > 0)
{
Request.Files[0].SaveAs(Server.MapPath(this.TemplateSourceDirectory) + "\\" + Request.Files[0].FileName);
}
}
catch(Exception ex)
{
Response.Write(ex.ToString());
}