Package org.n52.svalbard.util
Class W3cHelper
java.lang.Object
org.n52.svalbard.util.W3cHelper
Helper class for W3C
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetContentFromElement(Element element, String namespaceURI, String localName) Get text content from element by namespace.static StringnodeToXmlString(Node node) Parses w3c.Node to String
-
Method Details
-
nodeToXmlString
Parses w3c.Node to String- Parameters:
node- Node to parse.- Returns:
- Node as String.
- Throws:
IOException- if an error occurs.
-
getContentFromElement
Get text content from element by namespace.- Parameters:
element- elementnamespaceURI- Namespace URIlocalName- local name- Returns:
- Text content.
-