|
Java XML Streaming Library
|
This is the home page for the Java Streaming Library. This project is
in beta V 1.0 and is available to all developers for immediate use. The
project is under the package:
com.machinedialog.xmlstream
Contained in the Jar file md_xmlstream.jar
The entire package, including source, documenataion and jar files are
available for download on Source Forge: md_xmlstream.jar
This development was supported by
Machine Dialog LLC
Summary
This document describes a fast object streaming
library for reading and writing XML documents. The
code is freely available to the development community under
LGPL ( ). The library (xmlstream) is designed to be
simple to use and extend. The interface is very similar to the
object serialization capability found in most Object Oriented languages.
Overview and more...
Release Notes
The software is still beta although it has been extensively
used by Machine Dialog. The java library has only been tested on the
Microsoft windows platform (JDK 1.3). The library is in the package
com.machinedialog.xmlstream . There
is a windows batch file to build the library (build.bat). There is a
pre-built jar file in the package md_xmlstream.jar
.
|
Important classes
There are only a small number of classes you have
to understand to use the library. The following is a list of the most important
Java class in the library.
Class
|
Description
|
XMLSerializer
|
Use this class to create a reader/writer
and to write XML elements.
more...
.
|
IXMLize
|
Add this interface to classes
so that they can be serialized.
more...
(Note: the stream handles primitive data types such
as int, long, double, ... as well as the core classes such as String,
Integer, Long, Double, Boolean as a part of the XMLSerializer class)
|
XMLMap
|
Used to map tag names to Java
classes. This class is important for dealing with polymorphism
in Java.
more...
|
Goto Full Java Doc
Salient Features
- Easy to use
- Built in handling of lists
- Simple method of handling tag attributes
- Supports optional/manditory tags and default value
Finally
The xmlstream library has remains
to to be optimized fully. Although it performs adequately in most circumstances.
The most important facility that is missing the the processing of
XML namesapce. We hope to be able to add the capability in the next
release. Even without namespace the library has been found to be extremely
useful. We hope the documentation that has been provided is sufficient
for you to be able to use the library.
|