Package io.hawt.util
Class XmlHelper
java.lang.Object
io.hawt.util.XmlHelper
A helper method to get the namespaces on an XML file
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static XmlNamespaceFinderstatic SAXParserFactorygetNamespaces(File file) Returns the namespace URIs found in the given XML filegetNamespaces(InputSource source) Returns the namespace URIs found in the given XML filestatic voidsetFactory(SAXParserFactory factory)
-
Constructor Details
-
XmlHelper
public XmlHelper()
-
-
Method Details
-
getNamespaces
public static Set<String> getNamespaces(File file) throws ParserConfigurationException, SAXException, IOException Returns the namespace URIs found in the given XML file -
getNamespaces
public static Set<String> getNamespaces(InputSource source) throws ParserConfigurationException, SAXException, IOException Returns the namespace URIs found in the given XML file -
getFactory
-
setFactory
-
createNamespaceFinder
-