Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

[jdom-interest] SAX Schema Validations

BenedictPA

2005-02-26

Replies:

If anyone can answer this, please do.
 
I am using JDOM for document building and parsing as well as validating. I have a requirement that people upload XML files and I have to perform validation on them against a schema. Does the schema HAVE to be a public URL? I'd rather have the schema as a private file in my Java resource bundle -- but it seems setProperty requires an external URL.
 
parser.setProperty(
    "http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",
     "url");
 
Thanks,
Paul 
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.