it.unipd.dei.ims.nestor.experiment.xml
Class EADDom

java.lang.Object
  extended by it.unipd.dei.ims.nestor.experiment.xml.EADDom

public class EADDom
extends java.lang.Object


Constructor Summary
EADDom()
           
 
Method Summary
static org.w3c.dom.Document getDom(java.io.File xmlFile)
           
static java.lang.String getMaxDepthLeafPath(org.w3c.dom.Document xmlDocument)
          Returns the XPath to a leaf with maximum depth in the XMl file.
static java.lang.String getMaxFanOutPath(org.w3c.dom.Document xmlDocument)
          Returns the XPath to the max fan out node
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EADDom

public EADDom()
Method Detail

getDom

public static org.w3c.dom.Document getDom(java.io.File xmlFile)
                                   throws org.xml.sax.SAXException,
                                          java.io.IOException,
                                          javax.xml.parsers.ParserConfigurationException
Throws:
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException

getMaxFanOutPath

public static java.lang.String getMaxFanOutPath(org.w3c.dom.Document xmlDocument)
Returns the XPath to the max fan out node

Parameters:
xmlDocument - the DOM of the XML file.
Returns:
the path to the max fan out node.

getMaxDepthLeafPath

public static java.lang.String getMaxDepthLeafPath(org.w3c.dom.Document xmlDocument)
                                            throws javax.xml.xpath.XPathExpressionException
Returns the XPath to a leaf with maximum depth in the XMl file.

Parameters:
xmlDocument - the DOM of the XML file.
Returns:
the path to the max fan out node.
Throws:
javax.xml.xpath.XPathExpressionException