Author: mrglavas
Date: Mon May 31 14:59:35 2010
New Revision: 949762

URL: http://svn.apache.org/viewvc?rev=949762&view=rev
Log:
Our examples shouldn't encourage folks to use system properties for selecting 
the factory. The META-INF/services file located in xercesImpl.jar should be 
sufficient for finding the XML Schema 1.1 factory.

Modified:
    xerces/java/branches/xml-schema-1.1-dev/docs/faq-xs.xml

Modified: xerces/java/branches/xml-schema-1.1-dev/docs/faq-xs.xml
URL: 
http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/docs/faq-xs.xml?rev=949762&r1=949761&r2=949762&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/docs/faq-xs.xml (original)
+++ xerces/java/branches/xml-schema-1.1-dev/docs/faq-xs.xml Mon May 31 14:59:35 
2010
@@ -27,9 +27,6 @@
       <p>For XML Schema 1.1 validation, you'll need to use the JAXP
       validation API, using the XSD 1.1 Schema factory. Here's an example: </p>
       <source>
-System.setProperty("
-javax.xml.validation.SchemaFactory:http://www.w3.org/XML/XMLSchema/v1.1";,
-"org.apache.xerces.jaxp.validation.XMLSchema11Factory");
 SchemaFactory sf = SchemaFactory.newInstance(
     "http://www.w3.org/XML/XMLSchema/v1.1";);
 Schema s = sf.newSchema(new StreamSource(args[1]));
@@ -37,7 +34,7 @@ Validator v = s.newValidator();
 v.validate(new StreamSource(args[0]));
       </source>
       <p>You can also refer to the JAXP sample, SourceValidator, where you
-         can validate xml documents against 1.1 schemas by specifying the 
"-xsd11"
+         can validate XML documents against 1.1 schemas by specifying the 
"-xsd11"
          flag when running the sample.</p>
       <p>Each document that uses XML Schema grammars must specify the location 
of the
        grammars it uses by using an xsi:schemaLocation attribute if they use



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to