C
Casper B
I am switching from DTD validation to Schema due to its richness. It was
my understanding that a Schema could be used to also specify criterias
of elements/attributtes such that e.g. only positive integers are accepted.
XSD:
<xsd:element name="RowSpec">
<xsd:complexType>
<xsd:attribute name="Iterations" type="xsdositiveInteger"/>
....
XML:
<RowSpec Iterations="-1">
However, it seems my toolkit (Oracle DOM parser) is not complaining over
the negative value above. Did I misunderstand something, are W3X types
not part of the default validation process?
Regards,
Casper
my understanding that a Schema could be used to also specify criterias
of elements/attributtes such that e.g. only positive integers are accepted.
XSD:
<xsd:element name="RowSpec">
<xsd:complexType>
<xsd:attribute name="Iterations" type="xsdositiveInteger"/>
....
XML:
<RowSpec Iterations="-1">
However, it seems my toolkit (Oracle DOM parser) is not complaining over
the negative value above. Did I misunderstand something, are W3X types
not part of the default validation process?
Regards,
Casper