Skip navigation links

Package org.n52.security.common.xml

The XML package contains utiltiy and helper classes for xml processing.

See: Description

Package org.n52.security.common.xml Description

The XML package contains utiltiy and helper classes for xml processing.

Package Specification

DOM Parsing

Please use the DOMParser class to parse xml documents as DOM.
This class is a performance optimized wrapper arround the DocumentBuilderFactory and it's settings.

DOM Serialization

Please use the DOMSerializer to write a DOM-Document to a outputstream.
The class is a performance optimized wrapper arround the TransformerFactory class and it's settings.

XPath

To make xpath expressions with namespaces use the SimpleNamespaceContext class to link prefixes to namespaces.

XML Chunk Reading

To parse very large xml documents use the XMLChunkReader and implement own XMLChunkHandler.

DOM Traversing / Visiting

With the class DocumentTraverser you can let implementations of DocumentVisitors visit a DOM-Tree.
This is a external implementation of the Visitor-Pattern for XMLDocuments, which offers great flexiblity for processing of DOM trees. You can implement simple DocumentVisitors by extending the DocumentVistorAdapter class.

XML Helper

The classes

are helpers for common xml use cases.

Skip navigation links

Copyright © 2004–2017 52north.org. All rights reserved.