M
Mark
I've working on processing xml from an external source (who I can contact to
change things if they turn out to be incorrect) and in their xml documents empty
elements span multiple lines e.g.
<element>
</element>
rather than <element /> or <element></element>. When I'm parsing the xml the
text of the element is '\n' which is what I would expect, but not what they
intend - it should be null or an empty string or whatever. Is what they're doing
wrong in expressing an empty element, or is it simply ugly (but not wrong)?
TIA
change things if they turn out to be incorrect) and in their xml documents empty
elements span multiple lines e.g.
<element>
</element>
rather than <element /> or <element></element>. When I'm parsing the xml the
text of the element is '\n' which is what I would expect, but not what they
intend - it should be null or an empty string or whatever. Is what they're doing
wrong in expressing an empty element, or is it simply ugly (but not wrong)?
TIA