using System;
using System.IO;
using System.Xml.Serialization;
using CHXSD;
namespace CompaniesHouseSF
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
CHXSD.CompanyIncorporation inc = new CompanyIncorporation();
inc.SameDay = true;
inc.Agent = new CompanyIncorporationAgent();
inc.Agent.Person = new NameType();
inc.Agent.Person.Forename = "MR FIRST";
XmlSerializer xs = new XmlSerializer(typeof(CompanyIncorporation));
StringWriter str = new StringWriter();
xs.Serialize(str, inc);
literal1.Text = Server.HtmlEncode(str.ToString());
str.Close();
}
}
}