public class XmlUtils extends Object
| Constructor and Description |
|---|
XmlUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Node |
asNode(String xmlString)
|
static String |
asString(Node node)
|
static QName |
buildQName(Node node) |
static List<org.apache.xerces.xs.XSElementDeclaration> |
getFeaturePropertiesByType(org.apache.xerces.xs.XSModel model,
QName featureTypeName,
org.apache.xerces.xs.XSTypeDefinition... typeDefs)
Parses all properties of a feature type matching the given type
|
static Node |
reloadNode(Node wfsCapabilities) |
public static Node asNode(String xmlString) throws Exception
xmlString - never nullnullExceptionpublic static String asString(Node node) throws Exception
node - never nullnullExceptionpublic static QName buildQName(Node node)
the - node to create the name from, never nullnullpublic static Node reloadNode(Node wfsCapabilities) throws Exception, SAXException, IOException, ParserConfigurationException
public static List<org.apache.xerces.xs.XSElementDeclaration> getFeaturePropertiesByType(org.apache.xerces.xs.XSModel model, QName featureTypeName, org.apache.xerces.xs.XSTypeDefinition... typeDefs)
model - the parsed schema definition never nullfeatureTypeName - the name of the feature type the properties should be parsed
from, never nulltypeDefs - a list of types the properties should matchXSElementDeclarations part of the feature type
matching to one of the passed types, may be empty but never
nullCopyright © 2021 Open Geospatial Consortium. All rights reserved.