Using SAX with a schema

Ryan Deardorff <[email protected]>
Newsgroups gmane.text.xml.sax.general
Message-ID <[email protected]>
I have written a SAX parser that is currently parsing XML documents that 
are tied to a DTD.  Will this same parser work as-is when those 
documents are updated to be attached to a schema instead of a DTD?  I've 
got a co-worker hard at work defining a schema that will make generating 
our XML easier (because of the validation/auto-fill features of XMLSpy), 
and I'm afraid that it might make my code bomb, since I can't seem to 
find any documentation on the subject.  The tag that specifies the DTD 
is an empty one (only has attributes, no content), and does not get 
passed to the SAX parser methods, and my co-worker informs me that the 
tag that specifies a schema must be the ROOT element of the document. 
 So that concerns me...

Ryan

-- 
=================================================================
"In the beginning the Universe was created. This has made a lot
of people very angry and been widely regarded as a bad move."
                                  -- Douglas Adams

C. Ryan Deardorff        Software Engineer/Web Developer                     
        DLESE Program Center
        University Corporation for Atmospheric Research
Boulder CO 80307
Phone 303-497-2655		Email <[email protected]>
=================================================================




-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
List: [email protected]
See:  http://www.saxproject.org
https://lists.sourceforge.net/lists/listinfo/sax-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.