public class DOMUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
containsTextOnly(DOMElement element)
Returns true if element contains only DOMText and false otherwise.
|
static boolean |
isCatalog(DOMDocument document)
Returns true if the XML document is a XML Catalog and false otherwise.
|
static boolean |
isDTD(String uri)
Returns true if the given URI is a DTD and false otherwise.
|
static boolean |
isXSD(DOMDocument document)
Returns true if the XML document is a XML Schema and false otherwise.
|
static boolean |
isXSD(String uri)
Returns true if the given URI is a XML Schema and false otherwise.
|
static DOMDocument |
loadDocument(String documentURI,
URIResolverExtensionManager resolverExtensionManager)
Returns the DOM document from the given XML Schema uri.
|
public static boolean isXSD(DOMDocument document)
public static boolean isXSD(String uri)
uri
- the URI to checkpublic static boolean isCatalog(DOMDocument document)
public static boolean isDTD(String uri)
uri
- the URI to checkpublic static boolean containsTextOnly(DOMElement element)
public static DOMDocument loadDocument(String documentURI, URIResolverExtensionManager resolverExtensionManager)
documentURI
- the schema URIresolverExtensionManager
- Copyright © 2020. All rights reserved.