Home » Xerces-J-src.2.9.1 » dom » [javadoc | source]
dom
public class: Writer [javadoc | source]
java.lang.Object
   dom.Writer
A sample DOM writer. This sample program illustrates how to traverse a DOM tree in order to print a document that is parsed.
Field Summary
protected static final  String NAMESPACES_FEATURE_ID    Namespaces feature id (http://xml.org/sax/features/namespaces). 
protected static final  String VALIDATION_FEATURE_ID    Validation feature id (http://xml.org/sax/features/validation). 
protected static final  String SCHEMA_VALIDATION_FEATURE_ID    Schema validation feature id (http://apache.org/xml/features/validation/schema). 
protected static final  String SCHEMA_FULL_CHECKING_FEATURE_ID    Schema full checking feature id (http://apache.org/xml/features/validation/schema-full-checking). 
protected static final  String HONOUR_ALL_SCHEMA_LOCATIONS_ID    Honour all schema locations feature id (http://apache.org/xml/features/honour-all-schemaLocations). 
protected static final  String VALIDATE_ANNOTATIONS_ID    Validate schema annotations feature id (http://apache.org/xml/features/validate-annotations). 
protected static final  String GENERATE_SYNTHETIC_ANNOTATIONS_ID    Generate synthetic schema annotations feature id (http://apache.org/xml/features/generate-synthetic-annotations). 
protected static final  String DYNAMIC_VALIDATION_FEATURE_ID    Dynamic validation feature id (http://apache.org/xml/features/validation/dynamic). 
protected static final  String LOAD_EXTERNAL_DTD_FEATURE_ID    Load external DTD feature id (http://apache.org/xml/features/nonvalidating/load-external-dtd). 
protected static final  String XINCLUDE_FEATURE_ID    XInclude feature id (http://apache.org/xml/features/xinclude). 
protected static final  String XINCLUDE_FIXUP_BASE_URIS_FEATURE_ID    XInclude fixup base URIs feature id (http://apache.org/xml/features/xinclude/fixup-base-uris). 
protected static final  String XINCLUDE_FIXUP_LANGUAGE_FEATURE_ID    XInclude fixup language feature id (http://apache.org/xml/features/xinclude/fixup-language). 
protected static final  String DEFAULT_PARSER_NAME    Default parser name. 
protected static final  boolean DEFAULT_NAMESPACES    Default namespaces support (true). 
protected static final  boolean DEFAULT_VALIDATION    Default validation support (false). 
protected static final  boolean DEFAULT_LOAD_EXTERNAL_DTD    Default load external DTD (true). 
protected static final  boolean DEFAULT_SCHEMA_VALIDATION    Default Schema validation support (false). 
protected static final  boolean DEFAULT_SCHEMA_FULL_CHECKING    Default Schema full checking support (false). 
protected static final  boolean DEFAULT_HONOUR_ALL_SCHEMA_LOCATIONS    Default honour all schema locations (false). 
protected static final  boolean DEFAULT_VALIDATE_ANNOTATIONS    Default validate schema annotations (false). 
protected static final  boolean DEFAULT_GENERATE_SYNTHETIC_ANNOTATIONS    Default generate synthetic schema annotations (false). 
protected static final  boolean DEFAULT_DYNAMIC_VALIDATION    Default dynamic validation support (false). 
protected static final  boolean DEFAULT_XINCLUDE    Default XInclude processing support (false). 
protected static final  boolean DEFAULT_XINCLUDE_FIXUP_BASE_URIS    Default XInclude fixup base URIs support (true). 
protected static final  boolean DEFAULT_XINCLUDE_FIXUP_LANGUAGE    Default XInclude fixup language support (true). 
protected static final  boolean DEFAULT_CANONICAL    Default canonical output (false). 
protected  PrintWriter fOut    Print writer. 
protected  boolean fCanonical    Canonical output. 
protected  boolean fXML11    Processing XML 1.1 document. 
Constructor:
 public Writer() 
 public Writer(boolean canonical) 
Method from dom.Writer Summary:
getVersion,   main,   normalizeAndPrint,   normalizeAndPrint,   setCanonical,   setOutput,   setOutput,   sortAttributes,   write
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from dom.Writer Detail:
 protected String getVersion(Document document) 
    Extracts the XML version from the Document.
 public static  void main(String[] argv) 
    Main program entry point.
 protected  void normalizeAndPrint(String s,
    boolean isAttValue) 
    Normalizes and prints the given string.
 protected  void normalizeAndPrint(char c,
    boolean isAttValue) 
    Normalizes and print the given character.
 public  void setCanonical(boolean canonical) 
    Sets whether output is canonical.
 public  void setOutput(Writer writer) 
    Sets the output writer.
 public  void setOutput(OutputStream stream,
    String encoding) throws UnsupportedEncodingException 
    Sets the output stream for printing.
 protected Attr[] sortAttributes(NamedNodeMap attrs) 
    Returns a sorted list of attributes.
 public  void write(Node node) 
    Writes the specified node, recursively.