Kenneth Ramirez wrote:
> I just downloaded the latest source code (Xerces Version 1.0, which I had
> XML4J
> Version 3.0 before) and the XMLSerializer class is no longer there?
Version 1.0 is not the most recent release -- 1.0.1 is. Also,
the serializers are being added into the upcoming release.
IL PROTECTED]>
Date: Wednesday, February 09, 2000 5:45 PM
Subject: Re: Retrieving XML Doc from DOM as a string
>
>
>I just downloaded the latest source code (Xerces Version 1.0, which I had
XML4J
>Version 3.0 before) and the XMLSerializer class is no longer there?
>
>
>Ken R.
>
>
>
>
>
I just downloaded the latest source code (Xerces Version 1.0, which I had XML4J
Version 3.0 before) and the XMLSerializer class is no longer there?
Ken R.
The very, very latest source code from CVS (caveat emptor) is always available
at:
http://xml.apache.org/from-cvs/
Distributions (more stable and tested) are available at:
http://xml.apache.org/dist/
Checkout the webpages at http://xml.apache.org for much, much more information
Well, I downloaded the XML parser from IBM's site (XML4J version 3). Of course,
the documentation states that IBM has transferred the code over to Apache and it
is now named Xerces. Is there a more recent version?
Ken Ramirez
You're looking at very very old code. The new code doesn't have the init
method, and it will check if encoding is null when creating the
OutputStreamWriter.
arkin
Kenneth Ramirez wrote:
>
> I couldn't call it in the way that you specified, but I was able to call it
> this
> way:
>
>
Jim O'Neill wrote:
> Try the following code.
>
> ByteArrayOutputStream bao=new ByteArrayOutputStream();
> XMLSerializer s = new XMLSerializer();
> s.setOutputByteStream(bao);
> s.serialize(fDocument);// fDocument is xml document
> System.out.println(bao.toString());
I would sugges
I don't know for sure if this is the problem or not, but many encodings
supported by
Sun and IBM's JDK's are NOT supported by MS-J++. An exception (just like
that one) is generally thrown when an unimplemented encoding is specified.
It does seem like you might be hitting this problem. If so, it
I couldn't call it in the way that you specified, but I was able to call it this
way:
ByteArrayOutputStream bao = new ByteArrayOutputStream();
XMLSerializer s = new XMLSerializer();
s.serialize(doc, bao, null);
return bao.toString();
That's exactly where I got the basis for my function. Do you see the need for a
function like this, or am I completely off the wall here?
Ken Ramirez
, LLC
www.ducatcommerce.com
-Original Message-
From: RHS Linux User <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, February 09, 2000 10:22 AM
Subject: Re: Retrieving XML Doc from DOM as a string
>
>Actually, if you're using or overwise w
Actually, if you're using or overwise want to download the Xerces-C
distribution, there is a program in the "samples" directory called
"DOMPrint.cpp" that is exactly like your program below. Guess there isn't
anything like it currently built into Xerces...
-- HSN
On Wed, 9 Feb 2000, Kenneth Ram
I convinced the organization that I'm currently consulting to start using Xerces
in our middle tier to return data retrieved from the database to the browser.
We actually have to first go through an ASP page before hitting the browser
(since the site is managed with IIS). In order to return the
13 matches
Mail list logo