|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.device.api.xml.jaxp.DOMInternalRepresentation
The class used to represent an XML document and to implement the W3C DOM
| Field Summary | ||
static boolean |
debug
|
|
| Constructor Summary | ||
DOMInternalRepresentation()
|
||
| Method Summary | ||
static void |
compress(Node n)
tell the DOM to compact the representation of the document containing the Node |
|
static void |
dump(Node n)
|
|
boolean |
getCoalescing()
Does this DOM coalesce whitespace? |
|
boolean |
getExpandingEntities()
Does this DOM expand entities? |
|
static DOMInternalRepresentation |
getIR(Node node)
Given any DOM node, return its associated DOMInternalRepresentation |
|
void |
parse(DefaultHandler handler)
This method allows you to "parse" an internal representation and generate callbacks to a SAX parser handler. |
|
static void |
parse(Document document,
DefaultHandler handler)
This method allows you to "parse" an internal representation and generate callbacks to a SAX handler. |
|
Document |
parse(InputSource is,
SAXParser parser)
Parse an XML document and return a Document node |
|
DocumentFragment |
parseFragment(String str)
|
|
void |
setCoalescing(boolean coalescing)
Indicate whether this DOM should turn CDATA sections into Text nodes, and then coalesce adjacent Text nodes |
|
void |
setEntityResolver(EntityResolver er)
Set the entity resolver to be used when parsing an XML document |
|
void |
setErrorHandler(ErrorHandler eh)
Set the error handler to be used when parsing an XML document |
|
void |
setExpandingEntities(boolean expandingEntities)
Indicate whether this DOM should expand entities. |
|
void |
setIgnoringComments(boolean ignoreComments)
Indicate whether this DOM should discard comments |
|
void |
setIgnoringWhitespace(boolean ignoreWhitespace)
Indicate whether this DOM should discard igorable whitespace, rather than saving it as text nodes |
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
| Constructor Detail |
| Method Detail |
public DocumentFragment parseFragment(String str) throws SAXException, IOException
public Document parse(InputSource is, SAXParser parser) throws SAXException, IOException
is - The XML documentparser - a SAX parser capable of parsing the InputSourcepublic void setErrorHandler(ErrorHandler eh)
eh - an error handlerpublic void setEntityResolver(EntityResolver er)
er - an EntityResolverpublic void setCoalescing(boolean coalescing)
coalescing - true if coalescing should be performed.public void setIgnoringWhitespace(boolean ignoreWhitespace)
ignoreWhitespace - true if whitespace should be ignoredpublic void setIgnoringComments(boolean ignoreComments)
ignoreComments - true if whitespace should be ignoredpublic void setExpandingEntities(boolean expandingEntities)
expandingEntities - true if entites should be expandedpublic boolean getCoalescing()
public boolean getExpandingEntities()
public static DOMInternalRepresentation getIR(Node node)
DOMInternalRepresentationnode - a DOM nodepublic static void parse(Document document, DefaultHandler handler) throws SAXException
document - the document to parsehandler - the SAX DefaultHandler that will receive the callbackspublic void parse(DefaultHandler handler) throws SAXException
handler - the SAX DefaultHandler that will receive the callbackspublic static void compress(Node n)
node -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2004 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.