public static interface XmlUtils.XmlnsFilteringParser
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getNamespacePrefixUriMap()
Provides namespace prefix-URI mappings found during last call to
parse(InputSource) , if namespace prefix-URI collecting is supported. |
Object |
parse(InputSource source)
Unmarshal XML data from the specified SAX InputSource and return the resulting content tree.
|
Object |
parse(URL url)
Unmarshal XML data from the specified URL and return the resulting content tree.
|
Object parse(InputSource source) throws JAXBException, IllegalArgumentException
source
- the input source to unmarshal XML data fromJAXBException
- If any unexpected errors occur while unmarshallingIllegalArgumentException
- if source
is nullObject parse(URL url) throws JAXBException, IllegalArgumentException
url
- the URL to unmarshal XML data fromJAXBException
- If any unexpected errors occur while unmarshallingIllegalArgumentException
- if url
is null or invalidMap<String,String> getNamespacePrefixUriMap()
parse(InputSource)
, if namespace prefix-URI collecting is supported. Such mappings may then be used for
namespace-aware XPath evaluation (e.g. XACML xpathExpression values)parse(InputSource)
not called yet, or namespace prefix-URI collecting is not supportedCopyright © 2012–2020. All rights reserved.