Quantcast
Channel: xsd2Code community edition .net class generator from XSD schema
Viewing all articles
Browse latest Browse all 543

New Post: How to force creating empty elements for nullable types

$
0
0
I would like to see an empty node like
<description/>
or
<description></description>
after serialization, but if my description-Property is NULL, the element will not serialized into the XML-file.
What is the correct syntax for my schema?
<xs:element name="Description" type="xs:string" minOccurs="1"/>
does not work.

Viewing all articles
Browse latest Browse all 543

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>