I am using the following code to write some XML to a XML field:
.Value = doc.OuterXml;
Connexion.StartProcessInstance(K2Instance);
K2Instance.Update();
My problem is that I need it to write a -<root> node at the top and the bottom of the XML field. AT this stage I am getting this in the XML field:
- - <xs:schema xmlns:xs="
<Company CompanyName="Accountants On Call" CompanyID="9" Selected="true" />
<Company CompanyName="Afgri Operations Ltd" CompanyID="43" Selected="false" />
<Company CompanyName="BAD" CompanyID="22" Selected="false" />
<Company CompanyName="Bokamoso Payroll Solutions (Pty) Ltd" CompanyID="61" Selected="false" />
</xs:schema>
Does anyone have some sample code or suggestions for me. I ould also like some sample code to read this field back.