http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Readme
Installation

API Docs
Samples
Schema

Properties
Features
FAQs

Releases
Caveats
Feedback

Y2K Compliance

Seting Features
 

To set a property on either org.apache.xerces.parsers.SAXParser or org.apache.xerces.parsers.DOMParser, you should use the SAX2 Configurable interface (org.xml.sax.Configurable).

DOMParser p=new DOMParser();
try {        
  p.setProperty("http://xml.org/sax/properties/namespace-sep","|");
} catch (SAXException e) {
  System.out.println("error in setting up parser property");             
}
		

General Properties
 

http://xml.org/sax/properties/namespace-sep

Type:  java.lang.String 
Access:  read-write 
Desc:  The separator string that will appear between the namespace URI and the local part of the name when namespace processing is being performed. If the value is the empty string, the two parts will be concatenated.  
Default:  "" 
See:  http://xml.org/sax/features/namespaces 

DOM Parser Properties
 

http://apache.org/xml/properties/dom/current-element-node

Type:  org.w3c.dom.Node 
Access:  read-only 
Desc:  The current DOM element node while parsing. 
Note:  This property is useful for determining the location with a DOM document when an error occurs. 
See:  http://xml.org/sax/properties/dom-node 

http://apache.org/xml/properties/dom/document-class-name

Type:  java.lang.String 
Access:  read-write 
Desc:  The fully qualified class name of the DOM implementation. The implementation used must have a zero argument constructor. 
Default:  "org.apache.xerces.dom.DocumentImpl" 
Note:  When the document class name is set to a value other than the name of the default document factory, the deferred node expansion feature does not work.  
See:  http://apache.org/xml/features/dom/defer-node-expansion 

SAX Parser Properties
 

http://xml.org/sax/handlers/DeclHandler

Type:  org.xml.sax.misc.DeclHandler 
Access:  read-write 
Desc:  Set the handler for DTD declarations. 

http://xml.org/sax/handlers/LexicalHandler

Type:  org.xml.sax.misc.LexicalHandler 
Access:  read-write 
Desc:  Set the handler for lexical parsing events. 

http://xml.org/sax/handlers/NamespaceHandler

Type:  org.xml.sax.misc.NamespaceHandler 
Access:  read-write 
Desc:  Set the handler for lexical parsing events. 


Copyright © 1999 The Apache Software Foundation. All Rights Reserved.