jlibs.xml.sax
Interface SAXProperties


public interface SAXProperties

This interface contains constants for various SAX Properties.

Author:
Santhosh Kumar T

Field Summary
static String DECL_HANDLER
          Set the handler for DTD declarations
static String DECL_HANDLER_ALT
          Shortcut for SAX-ext.
static String DOM_NODE
          The DOM node currently being visited, if SAX is being used as a DOM iterator.
If the parser recognizes and supports this property but is not currently visiting a DOM node, it should return null.
static String LEXICAL_HANDLER
          Set the handler for lexical parsing events: comments, CDATA delimiters, selected general entity inclusions, and the start and end of the DTD (and declaration of document element name).
static String LEXICAL_HANDLER_ALT
          Shortcut for SAX-ext.
static String XML_STRING
          Get the string of characters associated with the current event.
static String XML_VERSION
          A literal string describing the actual XML version of the document, such as "1.0" or "1.1"
 

Field Detail

LEXICAL_HANDLER

static final String LEXICAL_HANDLER
Set the handler for lexical parsing events: comments, CDATA delimiters, selected general entity inclusions, and the start and end of the DTD (and declaration of document element name).

Type: LexicalHandler
Access: read-write

See Also:
Constant Field Values

DECL_HANDLER

static final String DECL_HANDLER
Set the handler for DTD declarations

Type: DeclHandler
Access: read-write

See Also:
Constant Field Values

XML_VERSION

static final String XML_VERSION
A literal string describing the actual XML version of the document, such as "1.0" or "1.1"

Type: String
Access: read-only
Note: This property may only be examined during a parse after the startDocument callback has been completed.

See Also:
Constant Field Values

XML_STRING

static final String XML_STRING
Get the string of characters associated with the current event.
If the parser recognizes and supports this property but is not currently parsing text, it should return null

Type: String
Access: read-only

See Also:
Constant Field Values

DOM_NODE

static final String DOM_NODE
The DOM node currently being visited, if SAX is being used as a DOM iterator.
If the parser recognizes and supports this property but is not currently visiting a DOM node, it should return null.

Type: Node
Access: (parsing) read-only; (not parsing) read-write;

See Also:
Constant Field Values

LEXICAL_HANDLER_ALT

static final String LEXICAL_HANDLER_ALT
Shortcut for SAX-ext. lexical handler alternate property. Although this property URI is not the one defined by the SAX "standard", some parsers use it instead of the official one.

See Also:
Constant Field Values

DECL_HANDLER_ALT

static final String DECL_HANDLER_ALT
Shortcut for SAX-ext. declaration handler alternate property

See Also:
Constant Field Values


Copyright © 2015. All rights reserved.