[xsd-users] start/end tags versus empty tag

Barrie Kovish barrie.kovish at singularsoftware.com
Mon May 17 19:04:39 EDT 2010


I'm using XSD tree mapping.  I would like to be able to force empty elements to be written out as start end tags instead of an empty tag, i.e.
start/end tags:

<car></car>

instead of empty tag:

<car/>

Is there a way to do this?  Just to answer the obvious question, why? We transform XML produced and consumed by a 3rd party application.  It
turns out this application doesn't like <car/>.  

Thanks,

Barrie Kovish



More information about the xsd-users mailing list