public class XmlHelper extends Object
Constructor and Description |
---|
XmlHelper() |
Modifier and Type | Method and Description |
---|---|
protected static XmlNamespaceFinder |
createNamespaceFinder() |
static SAXParserFactory |
getFactory() |
static Set<String> |
getNamespaces(File file)
Returns the namespace URIs found in the given XML file
|
static Set<String> |
getNamespaces(InputSource source)
Returns the namespace URIs found in the given XML file
|
static void |
setFactory(SAXParserFactory factory) |
public static Set<String> getNamespaces(File file) throws ParserConfigurationException, SAXException, IOException
public static Set<String> getNamespaces(InputSource source) throws ParserConfigurationException, SAXException, IOException
public static SAXParserFactory getFactory()
public static void setFactory(SAXParserFactory factory)
protected static XmlNamespaceFinder createNamespaceFinder()
Copyright © 2017 JBoss by Red Hat. All rights reserved.