W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2002

XML attributes

From: Shahrzad Molavi <shahrzad@bamdadcomputer.com>
Date: Tue, 27 Aug 2002 09:25:00 -0600
Message-Id: <5.1.0.14.1.20020827092457.026826e0@localhost>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>

To Whom It May Concern:
Hi,
I have a question about the " Xml Attributes"
How could I check the null or minOccurs or maxlength with XML or XML Schema 
or DTD? When I change the value to null or the value exceeds the maxlength 
constraint, parser does not raise any error, why? (Parser: 
MSXML)<?xml:namespace prefix = o ns = 
"urn:schemas-microsoft-com:office:office" />

For example:
…
<s:AttributeType name="CharacterName" rs:number="2" rs:nullable="false" >
     <s:datatype dt:type="string" dt:maxLength="2"/>
</s:AttributeType>
…
         <z:row ID="1" CharacterName="John Smith" />
     </rs:data>
</xml>
Thanks to everyone who has helps with this draft!
Regards,
Shahrzad
Received on Tuesday, 27 August 2002 16:26:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:01 GMT