Martin Klang | 3 Nov 2003 17:05
Picon
Favicon

new release!


Hi all,

just to let you know i've put the new objectbox release online.
the new release is v0.9.7 and comprises:
 * Program declarations. Parameters passed to a program must be declared,
   whether it runs in servlet mode, inside Ant or standalone. It is now
   also possible to control the way whitespace and comments are handled
   during compilation.
 * API support for Documents and DocumentTypes, DTD entities and
   notations, and preservation of internal DTD subsets.
 * Ability to load import files from the classpath.
 * plus numerous smaller improvements to the CLI, Ant and Servlet modes
   and several bugfixes.

If you have the chance, pls download, test it and let me know if you find
any problems!

There's an easy way to test it by using the new executable jar file,
available here (requires JDK1.4) :
http://download.pingdynasty.com/o-xml/ObjectBox/current/objectbox.jar

just download and run with something like
java -jar objectbox.jar [options...] filename

The main change you will notice from the previous release is that program
parameters must be declared. If you have been passing command line
options, or used the servlet request parameters, these must now be
declared by name (with an optional default value):
<o:program ...>
(Continue reading)

Martin Klang | 3 Nov 2003 17:17
Picon
Favicon

Re: Setting xml encoding


Ken, with the new release you can specify the output encoding using the
command line option -encoding
However, I've not figured out a way to get information about the original
program file encoding from the XML parser.
What i wanted to do was to create a SAX InputSource, and simply do
getEncoding(). Unfortunately this seems to always return null.

Let me know if you know of any other way to get this information without
manually parsing the xml declaration.

cheers,

/m

Martin Klang
http://www.o-xml.org - the object-oriented XML programming language

On Tue, 21 Oct 2003, Ken McCloskey wrote:

> Martin,
>
> Is there a way to set the encoding of the o-xml output file?
>
> For example, how could I output the following:
>
> <?xml version="1.0" encoding="iso-8859-1"?>
> instead of
> <?xml version="1.0" encoding="UTF-8"?>
>
(Continue reading)


Gmane