sax and schema

"Serdyn du Toit" <[email protected]> Mon, 21 Jul 2003 10:38:44 +0200
Newsgroups gmane.text.xml.sax.general
Message-ID <[email protected]>
Hi.  Does anyone maybe have some examples of implementing Schema with SAX.
I've basically looked everywhere (java.sun.com, javaworld, google, etc) and
couldn't find an example that worked for me.

I'm basically coding a chatserver and want to test the inputstream against a
schema.  So, somehow I now need to link my SAX parser to the schema.  Every
other website (of the few) recommended something different.  In my last
(futile) attempt I played around with the following

         //  Link parser to the relevant schema
         try {

this.builder.setProperty("http://apache.org/xml/properties/schema/external-s
chemaLocation","myschema.xsd");
         } catch (SAXNotRecognizedException saxnre) {
              logger.error("SAXNotRecognizedException  :" +
saxnre.getMessage());
         } catch (SAXNotSupportedException saxnse) {
              logger.error("SAXNotSupportedException  :" +
saxnse.getMessage());
         }

When I run the chatserver and I try to parse an input stream I a
SAXNotRecognizedException with a getMessage() of:
Property: http://apache.org/xml/properties/schema/external-schemaLocation

(#ERROR# 21 Jul 2003 10:07:48,968 -> SAXNotRecognizedException  :Property:
http:/
/apache.org/xml/properties/schema/external-schemaLocation)

Any useful links, or examples, anything would be appreciated at this stage.
Schema is probably not really necessary for this application but I thought
it would be a cool way to learn it...and now I'm just having some trouble.

Thank you




-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
List: [email protected]
See:  http://www.saxproject.org
https://lists.sourceforge.net/lists/listinfo/sax-users