09-23-05 01:58 AM
TypedXmlDoc is not in existance, am I misssing something?
<esuyer@gmail.com> wrote in message
news:1127415526.657959.188680@z14g2000cwz.googlegroups.com...
> you'll need a .net type i.e.
>
> class RecordHelper {
> public void AddRecord( TypedXmlDoc recordDoc, int recordid, string
> field1, string field2 ) {
>
> XmlDocument d = recordDoc.OwnerDocument;
> XmlElement e = d.CreateElement("Record");
>
> XmlAttribute _a = d.CreateAttribute("Id");
> _a.InnerText = recordid.tostring();
> e.Attributes.Append(_a);
>
> XmlAttribute _a = d.CreateAttribute("field1");
> _a.InnerText = field1;
> e.Attributes.Append(_a);
>
> XmlAttribute _a = d.CreateAttribute("field2");
> _a.InnerText = field2;
> e.Attributes.Append(_a);
>
> recordDoc.AppendChild(e);
> }
> }
>
>
> HTH
>
[ Post a follow-up to this message ]
|