IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

How to make an element optional (XSD) Options · View
sking72
Posted: Monday, August 17, 2009 8:15:14 PM
Rank: Newbie

Joined: 8/17/2009
Posts: 2
Location: Kentucky
Greetings.

I'm using XMLSpy 2009 EE sp 1. I've got a need to allow the schema (XSD) to change by allowing elements to be added but without breaking existing clients. I wanted to do this by marking these elements as "optional" in some way but while I've seen examples of a "minOccurs" attribute of the xs:element element, this attribute does not appear in XMLSply but only these: "abstract", "block", "default", "final", "fixed", "id", "nilable", "substitutionGroup" and "type". I'm wondering if the parser that XMLSpy is using does not recognize these attributes and, if not, is there a download or a setting I can switch?

Thanks!
vlad
Posted: Tuesday, August 18, 2009 2:55:54 AM
Rank: Advanced Member

Joined: 12/13/2005
Posts: 2,856
Location: Mauritius
You will see min/maxOccurs everywhere, except in Global Elements. You can't set these attributes globally - only where these elements are used.
sking72
Posted: Tuesday, August 18, 2009 6:28:53 PM
Rank: Newbie

Joined: 8/17/2009
Posts: 2
Location: Kentucky
Thanks, Vlad. That makes perfect sense.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.