You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Henning von Bargen <H....@Triestram-Partner.de> on 2000/05/18 16:44:19 UTC

Maybe off-topic: How to parse XML in Java Applets?

I have XML generated on the web server (actually not by apache, but oracle
pl/sql)
and want to use this XML in a Java applet on the client's browser.

FYI: The idea is to use XML instead of JDBC.
Result sets are generated by stored procedures in the database
and rendered as XML. The client only gets the resulting XML document
and needs no direct access to the database 
(with the effect that the database can reside behind a firewall and the
stored procedures
can do additional security checks and so on).

My problem is now how to read the XML document in from the uri, parse it and
generate
Java objects from it.
Of course I could use Xerces in principle, but it seems a bit oversized for
my task-
the jar is about 1.6 MB or so.
Has anyone already used JDOM for this?
I downloaded today, but it does not work with JDK 1.1.x
and there are no precompiled JAR files available, so I don't know how large
these will be.
Is there any real lightweight implementation?
I only want to parse simple XML documents, no validation is needed.
Is a simple solution at hand?

Henning