TUM CCSM Commons

Package edu.tum.cs.commons.xml

This package defines a simple, lean framework for writing and reading XML files.

See:
          Description

Interface Summary
IXMLElementProcessor<E extends Enum<E>,X extends Exception> This interface defines processors that process elements from an XML file.
IXMLResolver<E extends Enum<E>,A extends Enum<A>> Interface for resolution of element and attribute names.
 

Class Summary
ConstantNamespaceContext A minimalistic implementation of NamespaceContext to be used with XPath.
LowercaseResolver<E extends Enum<E>,A extends Enum<A>> XML resolver which transforms the enum names by making them lower case and replacing underscores by dashes.
XMLReader<E extends Enum<E>,A extends Enum<A>,X extends Exception> Utility class for reading XML documents.
XMLResolver<E extends Enum<E>,A extends Enum<A>> Default implementation of IXMLResolver.
XMLUtils Collection of utility methods for XML.
XMLWriter<E extends Enum<E>,A extends Enum<A>> Utility class for creating XML documents.
XPathEvaluator Evaluator for XPath expression.
 

Enum Summary
EXMLWriterExceptionType Exception types to detail XMLWriterExceptions.
 

Exception Summary
XMLWriterException XMLWriterExceptions are runtime exceptions thrown by the XMLWriter.
 

Package edu.tum.cs.commons.xml Description

This package defines a simple, lean framework for writing and reading XML files. This is by no means a complete persistance or XML publishing framework but only a very thin abstraction layer on top of DOM/SAX to enable a cleaner, redundancy-free and better modularized way of XML processing.

The core of the framework is defined by the classes XMLWriter and XMLReader. Please have a look at the examples in test-src folder for further documentation.


TUM CCSM Commons

TUM CCSM Commons - 2.7