コード例 #1
0
 /** Parses a new XML Schema document. */
 public void parse(String systemId) throws SAXException {
   parse(new InputSource(systemId));
 }
コード例 #2
0
 /** Parses a new XML Schema document. */
 public void parse(URL url) throws SAXException {
   parse(url.toExternalForm());
 }
コード例 #3
0
 /**
  * Parses a new XML Schema document.
  *
  * <p>When using this method, XSOM does not know the system ID of this document, therefore, when
  * this reader contains relative references to other schemas, XSOM will fail to resolve them. To
  * specify an system ID with a reader, use {@link InputSource}
  */
 public void parse(Reader reader) throws SAXException {
   parse(new InputSource(reader));
 }
コード例 #4
0
 /** Parses a new XML Schema document. */
 public void parse(File schema) throws SAXException, IOException {
   parse(schema.toURL());
 }
コード例 #5
0
 /**
  * Parses a new XML Schema document.
  *
  * <p>When using this method, XSOM does not know the system ID of this document, therefore, when
  * this stream contains relative references to other schemas, XSOM will fail to resolve them. To
  * specify an system ID with a stream, use {@link InputSource}
  */
 public void parse(InputStream is) throws SAXException {
   parse(new InputSource(is));
 }