[Read-only] This property returns the AnswerCollection as an XML string.
string XML [ get ]
The following Visual C# example displays the answer file as an XML string.
public class ExampleCode
{
static void Main()
{
HotDocs.AnswerCollection asc = new HotDocs.AnswerCollection();
asc.Create(@"C:\Documents\HotDocs\Answers\AnswerFile.anx");
Console.WriteLine(asc.XML);
asc.Close();
}
}
Here is what the XML string might look like:
<?xml version="1.0" encoding="Windows-1252" standalone="yes"?>
<AnswerSet title = "Jane Doe" version = "1.1">
<Answer name = "Agreement Date">
<RptValue>
<DateValue>3/8/2008</DateValue>
<DateValue>2/8/2008</DateValue>
<DateValue unans = "true"/>
</RptValue>
</Answer>
<Answer name = "Employee Gender">
<MCValue>
<SelValue>Male</SelValue>
</MCValue>
</Answer>
<Answer name = "(ANSWER FILE DESCRIPTION)">
<TextValue></TextValue>
</Answer>
<Answer name = "(ANSWER FILE HISTORY)">
<TextValue>Last Will and Testament : January 31, 2008, 15:24</TextValue>
</Answer>
<Answer name = "Employee Name">
<TextValue>Raylene Schofield</TextValue>
</Answer>
</AnswerSet>