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.
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
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
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