|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.devyant.decorutils.xml.SimpleXmlWrapper
public class SimpleXmlWrapper
A simple wrapper for XML documents. Each DynaNode has a set of
attributes which include text data retrieved from child nodes body.
| Constructor Summary | |
|---|---|
SimpleXmlWrapper(java.lang.String file)
Creates a new SimpleXmlWrapper instance. |
|
| Method Summary | |
|---|---|
java.util.Collection |
getNodes()
Returns a Collection of all the nodes in the document. |
java.util.Collection |
getNodes(java.lang.String xpath)
Returns a Collection of the nodes
selected by the XPath query. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleXmlWrapper(java.lang.String file)
throws javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException
SimpleXmlWrapper instance.
file - The XML file
javax.xml.parsers.ParserConfigurationException - Thrown by document factory
java.io.IOException - Thrown by XML parser
org.xml.sax.SAXException - Thrown by XML parser| Method Detail |
|---|
public final java.util.Collection getNodes(java.lang.String xpath)
throws javax.xml.transform.TransformerException
Collection of the nodes
selected by the XPath query.
xpath - XPath query
Collection of DynaNode's
javax.xml.transform.TransformerException - Thrown by the XPath API
public final java.util.Collection getNodes()
throws javax.xml.transform.TransformerException
Collection of all the nodes in the document.
Collection of DynaNode's
javax.xml.transform.TransformerException - Thrown by the XPath API
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||