Viv,
The code you enclosed gives me the following:
<credit_type>
<type>joint</type>
</credit_type>
Where I need the following:
<credit_type type="joint" />
For the life of me, I can't figure how to do that.
>Hi,
>
>>>
>I am attempting to write the following to an XML file:
>credit_type type="joint"
>with the WriteElementString() method. It keeps writing the following:
>credit_type="joint"
>I am having difficulty trying to get the other "type" element into the document.
>>>
>Could try something like instead:
>
>w.WriteStartElement("credit_type")
>w.WriteAttributeString("type", "joint")
>'Add element content etc.
>w.WriteEndElement()
>
>HTH,
>Viv
Bill Benton
Senior Systems Analyst
Nuvell Financial Services