jaxp\TypeInfoWriter.java - Apache Xerves JAXP Sample

Q

What is the jaxp\TypeInfoWriter.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 installed.

✍: FYIcenter

A

jaxp\TypeInfoWriter.java provided in the Apache Xerces package provides a trace of the schema type information for elements and attributes in an XML document. This demonstrates usage of the JAXP 1.4 Validation API, particuarly how to read type information from a TypeInfoProvider.

Here is how to run jaxp\TypeInfoWriter.java, if you have Apache Xerces 2.11.0 installed:

>\fyicenter\jdk-1.8.0\bin\java 
   -cp \fyicenter\xerces-2_11_0\xercesSamples.jar jaxp.TypeInfoWriter
   
usage: java jaxp.TypeInfoWriter (options) ...

options:
  -l name     Select schema language by name.
  -p name     Select parser by name.
  -a uri ...  Provide a list of schema documents
  -i uri ...  Provide a list of instance documents to validate
  -f  | -F    Turn on/off Schema full checking.
              NOTE: Not supported by all schema factories and validators.
  -hs | -HS   Turn on/off honouring of all schema locations.
              NOTE: Not supported by all schema factories and validators.
  -va | -VA   Turn on/off validation of schema annotations.
              NOTE: Not supported by all schema factories and validators.
  -ga | -GA   Turn on/off generation of synthetic schema annotations.
              NOTE: Not supported by all schema factories and validators.
  -h          This help screen.

defaults:
  Schema language:                 http://www.w3.org/2001/XMLSchema
  Parser:                          org.apache.xerces.parsers.SAXParser
  Schema full checking:            off
  Honour all schema locations:     off
  Validate annotations:            off
  Generate synthetic annotations:  off

 

Using Apache Xerces JAXP Sample Programs

⇒⇒FAQ for Apache Xerces XML Parser

2017-07-30, 289👍, 0💬