OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] XML Spy Help...

[ Lists Home | Date Index | Thread Index ]

[Nischal Muthana]
>
> This might be an off-topic question, but I thought
> some you might have come across the same situation. I
> am using XML Spy IDE for my XML/XML Schema stuff. When
> creating an .xsd, in the element tag if I specify
> minOccurs="1" and save and close the file and open it
> again, the minOccurs is gone. This might be because
> when I open a file it is opened by default in the
> Schema Design view.
>
> <xs:element name="environment" type="xs:string"
> minOccurs="1" maxOccurs="unbounded"/>
>
>
> Is there anywhere a setting where I can say I need
> this at anytime.
>

minOccurs=1 is the default, so removing the attribute doesn't change
anything, at least to the schema processsor.  It could be useful to humans,
though, to clearly state your intentions.

Cheers,

Tom P


  • References:



 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS