|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jsxp.framework.dom.XMLProcessing
public class XMLProcessing
The Class XMLProcessing. Used by the ViewParserDom
implementation to process a xml file.
Constructor Summary | |
---|---|
XMLProcessing()
Instantiates a new xML processing. |
Method Summary | |
---|---|
protected static org.w3c.dom.Node |
getNode(org.w3c.dom.Node node,
java.lang.String expression)
Gets the node. |
protected static org.w3c.dom.NodeList |
getNodes(org.w3c.dom.Document document,
java.lang.String expression)
Gets the nodes. |
protected static org.w3c.dom.Document |
parseDocument(java.io.InputStream inputStream)
Parses the document. |
protected static void |
printFile(java.lang.String filename)
Prints the file. |
static void |
validate(org.w3c.dom.Document document)
Validate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLProcessing()
Method Detail |
---|
protected static org.w3c.dom.Node getNode(org.w3c.dom.Node node, java.lang.String expression) throws javax.xml.xpath.XPathExpressionException
node
- the nodeexpression
- the expression
javax.xml.xpath.XPathExpressionException
- the x path expression exceptionprotected static org.w3c.dom.NodeList getNodes(org.w3c.dom.Document document, java.lang.String expression) throws javax.xml.xpath.XPathExpressionException
document
- the documentexpression
- the expression
javax.xml.xpath.XPathExpressionException
- the x path expression exceptionprotected static org.w3c.dom.Document parseDocument(java.io.InputStream inputStream) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
inputStream
- the input stream
javax.xml.parsers.ParserConfigurationException
- the parser configuration exception
org.xml.sax.SAXException
- the SAX exception
java.io.IOException
- Signals that an I/O exception has occurred.protected static void printFile(java.lang.String filename) throws java.io.FileNotFoundException, java.io.IOException
filename
- the filename
java.io.FileNotFoundException
- the file not found exception
java.io.IOException
- Signals that an I/O exception has occurred.public static void validate(org.w3c.dom.Document document) throws java.net.MalformedURLException, org.xml.sax.SAXException, java.io.IOException
document
- the document
java.net.MalformedURLException
- the malformed url exception
org.xml.sax.SAXException
- the SAX exception
java.io.IOException
- Signals that an I/O exception has occurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |