Groups | Blog | Home
all groups > dotnet xml > august 2004 >

dotnet xml : Validation against schema with SAX Reader?


Developer
8/5/2004 8:46:41 AM
Hello,

I see that ISAXXMLReader has a putProperty() method, and one of the
properties is "schemas". How do you use it? Does this mean the xml is
validated as it is parsed by the SAX reader?

Thanks for the help.

v-kevy NO[at]SPAM online.microsoft.com
8/6/2004 6:01:51 AM
Hi Developer,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to know how to use schemas
property in ISAXXMLReader. If there is any misunderstanding, please feel
free to let me know.

As far as I know, the schemas property is used to register schemas with the
SAX reader for validation. You can check the following link for more
information:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html
/refschemasproperty.asp

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Developer
8/6/2004 8:54:30 AM
Thanks, Kevin. Is there any description of how the SAX reader and schema
validation interacts? For example, what happens if the xml document doesn't
comply with the schema? Does the error go to the error handler registered
on the SAX reader (if there is one)? Is the entire document parsed before
it is determined to be compliant or not?
Thanks for your help.

[quoted text, click to view]

v-kevy NO[at]SPAM online.microsoft.com
8/10/2004 9:54:03 AM
Hi Developer,

As far as I can find, the link is the only document that I can find.
However, I've found some other examples for your reference.

http://www.endurasoft.com/vcd/sax.htm

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
AddThis Social Bookmark Button