<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: XML Schema nillable=&#8221;true&#8221; vs minOccurs=&#8221;0&#8243;</title>
	<atom:link href="http://www.dimuthu.org/blog/2008/08/18/xml-schema-nillabletrue-vs-minoccurs0/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dimuthu.org/blog/2008/08/18/xml-schema-nillabletrue-vs-minoccurs0/</link>
	<description>Waiting for your comments</description>
	<lastBuildDate>Thu, 01 Dec 2011 06:50:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: RP</title>
		<link>http://www.dimuthu.org/blog/2008/08/18/xml-schema-nillabletrue-vs-minoccurs0/comment-page-1/#comment-103587</link>
		<dc:creator>RP</dc:creator>
		<pubDate>Wed, 02 Nov 2011 17:20:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.dimuthu.org/?p=187#comment-103587</guid>
		<description>Very Nice article. It is explained very well. Thanks for sharing.</description>
		<content:encoded><![CDATA[<p>Very Nice article. It is explained very well. Thanks for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: XSD date types with minOccurs set to 0 now has a value of &#34;&#60;xml-fragment&#8230;&#34; (nillable defaults to false)</title>
		<link>http://www.dimuthu.org/blog/2008/08/18/xml-schema-nillabletrue-vs-minoccurs0/comment-page-1/#comment-100251</link>
		<dc:creator>XSD date types with minOccurs set to 0 now has a value of &#34;&#60;xml-fragment&#8230;&#34; (nillable defaults to false)</dc:creator>
		<pubDate>Sat, 15 Oct 2011 11:20:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.dimuthu.org/?p=187#comment-100251</guid>
		<description>[...] http://www.dimuthu.org/blog/2008/08/18/xml-schema-nillabletrue-vs-minoccurs0/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.dimuthu.org/blog/2008/08/18/xml-schema-nillabletrue-vs-minoccurs0/" rel="nofollow">http://www.dimuthu.org/blog/2008/08/18/xml-schema-nillabletrue-vs-minoccurs0/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: XSD date types with minOccurs set to 0 now has a value of &#34;&#60;xml-fragment&#8230;&#34; (nillable defaults to false) &#124; Gravity Layouts</title>
		<link>http://www.dimuthu.org/blog/2008/08/18/xml-schema-nillabletrue-vs-minoccurs0/comment-page-1/#comment-98089</link>
		<dc:creator>XSD date types with minOccurs set to 0 now has a value of &#34;&#60;xml-fragment&#8230;&#34; (nillable defaults to false) &#124; Gravity Layouts</dc:creator>
		<pubDate>Wed, 05 Oct 2011 13:03:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.dimuthu.org/?p=187#comment-98089</guid>
		<description>[...] http://www.dimuthu.org/blog/2008/08/18/xml-schema-nillabletrue-vs-minoccurs0/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.dimuthu.org/blog/2008/08/18/xml-schema-nillabletrue-vs-minoccurs0/" rel="nofollow">http://www.dimuthu.org/blog/2008/08/18/xml-schema-nillabletrue-vs-minoccurs0/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JR</title>
		<link>http://www.dimuthu.org/blog/2008/08/18/xml-schema-nillabletrue-vs-minoccurs0/comment-page-1/#comment-93757</link>
		<dc:creator>JR</dc:creator>
		<pubDate>Fri, 16 Sep 2011 13:47:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.dimuthu.org/?p=187#comment-93757</guid>
		<description>Nice article explaining this subject. I would add to this a discussion of the &quot;default&quot; attribute since for some types (numeric values in particular) this could eliminate confusion if the business rules allow for a default value.
BTW, the intent of the sample XML matches the schema, however 4 of the elements - nonboth, nilint, minzero and minzeronil - are not closed correctly and would not be considered well formed.
@G - I believe you can decorate your service method with an attribute defining those conditions.</description>
		<content:encoded><![CDATA[<p>Nice article explaining this subject. I would add to this a discussion of the &#8220;default&#8221; attribute since for some types (numeric values in particular) this could eliminate confusion if the business rules allow for a default value.<br />
BTW, the intent of the sample XML matches the schema, however 4 of the elements &#8211; nonboth, nilint, minzero and minzeronil &#8211; are not closed correctly and would not be considered well formed.<br />
@G &#8211; I believe you can decorate your service method with an attribute defining those conditions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rangalal Gamage</title>
		<link>http://www.dimuthu.org/blog/2008/08/18/xml-schema-nillabletrue-vs-minoccurs0/comment-page-1/#comment-89472</link>
		<dc:creator>Rangalal Gamage</dc:creator>
		<pubDate>Thu, 25 Aug 2011 06:39:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.dimuthu.org/?p=187#comment-89472</guid>
		<description>Short &amp; Sweet Article which helps me to solve WSDL level validations.</description>
		<content:encoded><![CDATA[<p>Short &amp; Sweet Article which helps me to solve WSDL level validations.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SK</title>
		<link>http://www.dimuthu.org/blog/2008/08/18/xml-schema-nillabletrue-vs-minoccurs0/comment-page-1/#comment-80206</link>
		<dc:creator>SK</dc:creator>
		<pubDate>Wed, 13 Jul 2011 00:46:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.dimuthu.org/?p=187#comment-80206</guid>
		<description>Explained ver well, nice article.</description>
		<content:encoded><![CDATA[<p>Explained ver well, nice article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G</title>
		<link>http://www.dimuthu.org/blog/2008/08/18/xml-schema-nillabletrue-vs-minoccurs0/comment-page-1/#comment-68812</link>
		<dc:creator>G</dc:creator>
		<pubDate>Mon, 16 May 2011 17:44:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.dimuthu.org/?p=187#comment-68812</guid>
		<description>Thanks this helps me out a lot now if only i could figure out how to get my C# web service to use minOccurs=&quot;0&quot; as apposed to minOccurs=&quot;1&quot; with out me having to edit the WSDL file after its generated.</description>
		<content:encoded><![CDATA[<p>Thanks this helps me out a lot now if only i could figure out how to get my C# web service to use minOccurs=&#8221;0&#8243; as apposed to minOccurs=&#8221;1&#8243; with out me having to edit the WSDL file after its generated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rockmania</title>
		<link>http://www.dimuthu.org/blog/2008/08/18/xml-schema-nillabletrue-vs-minoccurs0/comment-page-1/#comment-34853</link>
		<dc:creator>Rockmania</dc:creator>
		<pubDate>Mon, 18 Oct 2010 21:08:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.dimuthu.org/?p=187#comment-34853</guid>
		<description>Bookmarked this page. Good article.</description>
		<content:encoded><![CDATA[<p>Bookmarked this page. Good article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dtate22</title>
		<link>http://www.dimuthu.org/blog/2008/08/18/xml-schema-nillabletrue-vs-minoccurs0/comment-page-1/#comment-31724</link>
		<dc:creator>dtate22</dc:creator>
		<pubDate>Fri, 17 Sep 2010 20:08:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.dimuthu.org/?p=187#comment-31724</guid>
		<description>Excellent article.</description>
		<content:encoded><![CDATA[<p>Excellent article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dimuthu</title>
		<link>http://www.dimuthu.org/blog/2008/08/18/xml-schema-nillabletrue-vs-minoccurs0/comment-page-1/#comment-29852</link>
		<dc:creator>dimuthu</dc:creator>
		<pubDate>Sun, 29 Aug 2010 01:04:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.dimuthu.org/?p=187#comment-29852</guid>
		<description>We are declaring nillable true only on elements, and not on types. Isn&#039;t it?. If so if we extend a simple type (with some restrictions or by an enumerations), we can&#039;t declare it nillable. The element that has the type may be declared as nillable, but not the type itself. This is the first thought came to my mind, I will check and let you know if that is not the case.
Dimuthu</description>
		<content:encoded><![CDATA[<p>We are declaring nillable true only on elements, and not on types. Isn&#8217;t it?. If so if we extend a simple type (with some restrictions or by an enumerations), we can&#8217;t declare it nillable. The element that has the type may be declared as nillable, but not the type itself. This is the first thought came to my mind, I will check and let you know if that is not the case.<br />
Dimuthu</p>
]]></content:encoded>
	</item>
</channel>
</rss>

