Lists Home |
Date Index |
- From: David Megginson <firstname.lastname@example.org>
- To: email@example.com
- Date: Mon, 18 Sep 2000 11:55:38 -0400
There is a new version of my SAX2/Java-based XML Writer available at
Version 0.1 was accidentally shipped without source code just before I
had a hardware failure in my hard drive, so the source code was lost.
I have decompiled the Java class files from that release and
recommented and enhanced them with many new convenience methods.
There is also a new class for writing data- or field-oriented XML,
with automatic newlines and indentation. It works like this:
DataWriter w = new DataWriter();
This will give you the following document:
<?xml version="1.0" standalone="yes"?>
(Of course, there are also methods available to pass NamespaceURIs,
attribute lists, and QNames).
Both classes work as regular SAX2 filters, so you can stick them
anywhere in your filter chain (the data writer also passes and extra
indentation or newlines down the chain in characters() events).
These classes are in the Public Domain, and come with no warranty,
All the best,
David Megginson firstname.lastname@example.org