![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Q: XSD validation [Thread Next] Re: Q: XSD validationTo: NULL Date: 3/2/2005 1:39:00 PM Casper B wrote: > 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="xsd:positiveInteger"/> > ... > > 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? I do not use the Oracle parser but as for your schema and XML snippet, an error should be flagged when trying to validate that attribute value. But of course you need to make sure that validation against a schema is turned on for the parser, and that the parser finds the schema. If you are using Oracle only then you might find more help in an Oracle forum I think. -- Martin Honnen http://JavaScript.FAQTs.com/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
