|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lenya.xml.DOMParserFactory
public class DOMParserFactory
Utility class for creating DOM documents
Field Summary | |
---|---|
Parser |
parser
Deprecated. |
Constructor Summary | |
---|---|
DOMParserFactory()
Deprecated. Reads the properties and gets the parser |
Method Summary | |
---|---|
org.w3c.dom.Node |
cloneNode(org.w3c.dom.Document document,
org.w3c.dom.Node original,
boolean deep)
Deprecated. Clone node, which means copy a node into another document |
org.w3c.dom.Document |
getDocument()
Deprecated. DOCUMENT ME! |
org.w3c.dom.Document |
getDocument(java.io.InputStream inputStream)
Deprecated. DOCUMENT ME! |
org.w3c.dom.Document |
getDocument(java.io.Reader reader)
Deprecated. Create a document from a reader. |
org.w3c.dom.Document |
getDocument(java.lang.String filename)
Deprecated. DOCUMENT ME! |
static void |
main(java.lang.String[] args)
Deprecated. DOCUMENT ME! |
org.w3c.dom.CDATASection |
newCDATASection(org.w3c.dom.Document document,
java.lang.String data)
Deprecated. CDATA |
org.w3c.dom.Comment |
newCommentNode(org.w3c.dom.Document document,
java.lang.String data)
Deprecated. DOCUMENT ME! |
org.w3c.dom.Element |
newElementNode(org.w3c.dom.Document document,
java.lang.String name)
Deprecated. DOCUMENT ME! |
org.w3c.dom.Element |
newElementNSNode(org.w3c.dom.Document document,
java.lang.String namespaceUri,
java.lang.String qualifiedName)
Deprecated. Creates an element with namespace support. |
org.w3c.dom.Text |
newTextNode(org.w3c.dom.Document document,
java.lang.String data)
Deprecated. DOCUMENT ME! |
void |
setElementValue(org.w3c.dom.Document document,
org.w3c.dom.Element element,
java.lang.String value)
Deprecated. DOCUMENT ME! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Parser parser
Constructor Detail |
---|
public DOMParserFactory()
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- DOCUMENT ME!public org.w3c.dom.Document getDocument(java.lang.String filename) throws java.io.FileNotFoundException, java.lang.Exception
filename
- DOCUMENT ME!
java.io.FileNotFoundException
- DOCUMENT ME!
java.lang.Exception
- DOCUMENT ME!public org.w3c.dom.Document getDocument(java.io.InputStream inputStream) throws java.lang.Exception
inputStream
- DOCUMENT ME!
java.lang.Exception
- DOCUMENT ME!public org.w3c.dom.Document getDocument(java.io.Reader reader) throws java.lang.Exception
inputStream
- DOCUMENT ME!
java.lang.Exception
- DOCUMENT ME!public org.w3c.dom.Document getDocument()
public org.w3c.dom.Element newElementNode(org.w3c.dom.Document document, java.lang.String name)
document
- DOCUMENT ME!name
- DOCUMENT ME!
public org.w3c.dom.Element newElementNSNode(org.w3c.dom.Document document, java.lang.String namespaceUri, java.lang.String qualifiedName)
document
- The owner document.namespaceUri
- The namespace URI of the element.qualifiedName
- The qualified name of the element.
public org.w3c.dom.Text newTextNode(org.w3c.dom.Document document, java.lang.String data)
document
- DOCUMENT ME!data
- DOCUMENT ME!
public org.w3c.dom.CDATASection newCDATASection(org.w3c.dom.Document document, java.lang.String data)
document
- DOM documentdata
- Text
public org.w3c.dom.Comment newCommentNode(org.w3c.dom.Document document, java.lang.String data)
document
- DOCUMENT ME!data
- DOCUMENT ME!
public org.w3c.dom.Node cloneNode(org.w3c.dom.Document document, org.w3c.dom.Node original, boolean deep)
document
- New document where original nodes shall be attached tooriginal
- Original node from original documentdeep
- true means clone also all children
public void setElementValue(org.w3c.dom.Document document, org.w3c.dom.Element element, java.lang.String value)
document
- DOCUMENT ME!element
- DOCUMENT ME!value
- DOCUMENT ME!
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |