Dvir,
> Second: why did you propose to change the "Text" element? What are the
> benefit of the syntax you proposed?
>
In your content model ( mixed="true" ) anything that is not element is
considered to be a content of an anySimpleType (same as string) that remains
you practically no ways of controlling (validating) it.
If you declare the simple content of a complex type, you may have the parser
additionally validate it (on parse stage). Besides, you may extend it over
any simple type, not just string
For example:
<Text Bottom="500" Left="100" Right="500" Top="100">123456</Text>
Suppose you need to validate that content of your Text node is a number > 10
In your case, 123456 will remain as a string, and you will need an
additional effort to validate it acc. to this requirement:
string s = node.getText()
int n = int(s)
if( n < 10 ) throw exception
Better solution is to let the parser to do all dirty job for you. See
declaration of a Text node below:
<xs:element name="Text">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:integer">
<xs:minExclusive value="10"/>
</xs:extension>
.....
Just my thoughts.
Regards,
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]