Keith Adler
Keith Adler

Reputation: 21178

XSD use="optional"

I have the following:

<xs:attribute name="CarTitleID" type="xs:long" use="optional" />

In my source XML I want to allow people to say

<car CarTitleID="">

And have the XSD not fail. Is this possible?

Upvotes: 1

Views: 831

Answers (1)

annakata
annakata

Reputation: 75794

IIRC this sort of thing is intended to be handled by nillable types but the implementation is not very practical ultimately.

Upvotes: 2

Related Questions