I am using an XmlTextWriter to create an XML document, which we then send to
a client. The document is failing to validate against the DTD we are
providng when the load it into their (non-Microsoft) application, despite it
validating fine in VB.NET.
I believe we may have tracked the issue down to the way their software is
interpreting empty elements. When the element is written like this:
\\\
[...]
<SomeElement />
[...]
///
....the validation fails. However, if we write the element as:
\\\
[...]
<SomeElement></SomeElement>
[...]
///
.... the validation succeeds.
Is there a way of getting the XmlTextWriter to automatically produce "long"
empty elements like in my second example?
Many thanks,
--
(O)enone