ca.umontreal.iro.rali
Class Explore
java.lang.Object
ca.umontreal.iro.rali.Explore
public class Explore
- extends java.lang.Object
Show the XPath expressions corresponding to paths going from the root to leaves in an XML documents
using a Pull parser
- Author:
- Guy Lapalme, Université de Montréal, 2009
Method Summary |
protected static long |
execute()
Explore an XML file by generating a series of Path expression describing leafs of the skeleton
document; called when no -xp argument is given |
protected static void |
ignore(javax.xml.stream.XMLStreamReader xmlsr)
ignore the token (if debugging is enabled, it prints the token skipped) |
protected static org.w3c.dom.Node |
readNode(javax.xml.stream.XMLStreamReader reader,
org.w3c.dom.Document doc)
Read a Node (created with the doc) from pull parser reader
We read only the start of an element or a single text/comment/processing-intruction node |
protected static long |
setInputOutput()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLStreamConstantsNames
protected static java.lang.String[] XMLStreamConstantsNames
Explore
public Explore()
setInputOutput
protected static long setInputOutput()
execute
protected static long execute()
- Explore an XML file by generating a series of Path expression describing leafs of the skeleton
document; called when no -xp argument is given
- Throws:
org.w3c.dom.DOMException
javax.xml.stream.XMLStreamException
javax.xml.parsers.ParserConfigurationException
readNode
protected static org.w3c.dom.Node readNode(javax.xml.stream.XMLStreamReader reader,
org.w3c.dom.Document doc)
throws javax.xml.stream.XMLStreamException
- Read a Node (created with the doc) from pull parser reader
We read only the start of an element or a single text/comment/processing-intruction node
- Parameters:
reader
- pull parserdoc
- document used to create new nodes
- Returns:
- the Document node that was read from the input
- Throws:
javax.xml.stream.XMLStreamException
ignore
protected static void ignore(javax.xml.stream.XMLStreamReader xmlsr)
throws javax.xml.stream.XMLStreamException
- ignore the token (if debugging is enabled, it prints the token skipped)
- Parameters:
xmlsr
-
- Throws:
javax.xml.stream.XMLStreamException