> I receive a XML file from a customer and want to use a schema for validating
> the XML file. What I don't know how to do is, that I want to continue
[quoted text clipped - 7 lines]
> Is this possible within the schema definition, or do I have to treat this
> in my program.
Validation against schema can tell you whether XML is valid or not.
Basing on that you can "fix" your XML in your code.

Signature
Oleg Tkachenko
XML Insider
http://www.tkachenko.com/blog
Uwe Kuhne - 28 Dec 2003 14:02 GMT
My hope was that this is possible. I would have prefered to have everything
inside the schema file, to see exactly which values are possible and what
happens if a value is outside a defined range.
For a user of this schema it's not possible to guess what happens inside my
program, if some wrong value is delivered.
But nevertheless thanks for your reply, it prevents me from a time consuming
search on the web.
Cheers Uwe
> > I receive a XML file from a customer and want to use a schema for validating
> > the XML file. What I don't know how to do is, that I want to continue
[quoted text clipped - 10 lines]
> Validation against schema can tell you whether XML is valid or not.
> Basing on that you can "fix" your XML in your code.
Kevin Yu [MSFT] - 30 Dec 2003 06:59 GMT
Hi Uwe,
Please try to take a look at the DataType Facets. The maxInclusive and
minInclusive property may meet your needs.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/htm/
xsd_ref_9rar.asp
Kevin Yu

Signature
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."