| |
|
| java.lang.Object com.jat.util.xml.XMLDocument
XMLDocument | public class XMLDocument implements ErrorHandler,ErrorListener(Code) | | Title: JAT
Description: This class is an utility to manage XML document in cogiumtion with XMLUtil class
It permits to: |
XMLDocument | public XMLDocument()(Code) | | Constructor
|
XMLDocument | public XMLDocument(boolean coalescing)(Code) | | Constructor
Parameters: coalescing - if true CDataSection will be repleaced by Text Node |
XMLDocument | public XMLDocument(Document doc)(Code) | | Constructor
Parameters: doc - DOM object |
XMLDocument | public XMLDocument(Document doc, boolean coalescing)(Code) | | Constructor
Parameters: doc - DOM object Parameters: coalescing - if true CDataSection will be repleaced by TextNode |
convertCDataToText | protected synchronized void convertCDataToText()(Code) | | convert all CDataSection node into Text node
|
evaluateXPath | public ArrayList evaluateXPath(String xPath) throws TransformerException(Code) | | Evaluate an XPath expression.
For Example:
the xml:
Joe
+391111
Rome
XPath expression "person/name" will return 1 org.w3c.dom.Node (org.w3c.dom.TextNode) with value 'Joe'
XPath expression "person" will return 3 org.w3c.dom.Node (org.w3c.dom.Element) with the follow structure:
1) Joe
2) +391111
3) Rome
Parameters: xPath - XPath expression to evalate An array list containing Node object(s) exception: javax.xml.transform.TransformerException - |
getAllAttributeNode | public Vector getAllAttributeNode()(Code) | | Returun all Attribute node children of the Document
|
getAllCDataSectionNode | public Vector getAllCDataSectionNode()(Code) | | Returun all DataSection node children of the Document
|
getAllCommentNode | public Vector getAllCommentNode()(Code) | | Returun all Comment node children of the Document
|
getAllDocumentFragmentNode | public Vector getAllDocumentFragmentNode()(Code) | | Returun all DocumentFragment children node of the Document
|
getAllEntityNode | public Vector getAllEntityNode()(Code) | | Returun all Entity node children of the Document
|
getAllNodes | public Vector getAllNodes(short type)(Code) | | Returun all Node children of the Document with the type 'type'
Parameters: type - Node type |
getAllNotationNode | public Vector getAllNotationNode()(Code) | | Returun all Notation node children of the Document
|
getAllProcessingInstructionNode | public Vector getAllProcessingInstructionNode()(Code) | | Returun all ProcessInstruction children node of the Document
|
getAllStyleSheetProcessingInstructionNode | public Vector getAllStyleSheetProcessingInstructionNode()(Code) | | return all stylesheet process instruction of the XML document
|
getAllTextNode | public Vector getAllTextNode()(Code) | | Returun all Text node children of the Document
|
getDocument | public Document getDocument()(Code) | | return the XML Document
|
getElementNode | public Element getElementNode()(Code) | | Returun the Element node children of the Document
|
isCoalescing | public boolean isCoalescing()(Code) | | return true if CDataSection will be (or has been) repleaced by Text Node
|
setCoalescing | protected void setCoalescing(boolean coalescing)(Code) | | if true CDataSection will be repleaced by Text Node
Parameters: coalescing - |
setDocument | protected void setDocument(Document doc)(Code) | | set the XML Document
Parameters: doc - |
toString | public String toString()(Code) | | return the String representing the Document in XML format
|
|
|
|