You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Gareth Reakes <pa...@parthenoncomputing.com> on 2004/03/18 14:58:02 UTC

Re: [AA] Validation error when parsing a XML having a list using SAX Parser in Xerces 2.2.0

Hi,

> 	<xs:simpleType name="USERPRIVILEGES">
> 		<xs:restriction base="USERPRIVILEGESLIST">
> 			<xs:maxLength value="7"/>
> 			<xs:minLength value="1"/>

You have not given the full schema but this looks a little suspicious to
me. Is maxLength referring to the length of the strings in
the enumerations? If so then both of your examples are longer than 7.
Check this out by putting a value that is actually less than 7 in there.


Gareth

--
Gareth Reakes, Managing Director            +44-1865-811184
Parthenon Computing                http://www.parthcomp.com

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org