Return-Path: Mailing-List: contact general-help@xml.apache.org; run by ezmlm Delivered-To: mailing list general@xml.apache.org Received: (qmail 22501 invoked from network); 31 May 2000 18:23:51 -0000 Received: from unknown (HELO t1x-mail.t1xpert.com) (199.105.248.139) by locus.apache.org with SMTP; 31 May 2000 18:23:51 -0000 Received: by T1X-MAIL with Internet Mail Service (5.5.2448.0) id ; Wed, 31 May 2000 14:26:33 -0400 Message-ID: <31C6E19B36C2D311936100805F6F3991018B01@T1X-MAIL> From: Keith Pajkowski To: general@xml.apache.org Subject: building DOM tree from scratch Date: Wed, 31 May 2000 14:26:29 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01BFCB2D.BF2777F0" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01BFCB2D.BF2777F0 Content-Type: text/plain; charset="iso-8859-1" We want to convert a data structure to an XML equivalent on the fly, i.e., build a DOM tree without actually reading in an XML document. The only example of this I can find is written in XML4J and made use of the (now deprecated) class TXDocument. In this example the completed document was output using the instruction: ((TXDocument)doc).printWithFormat(new PrintWriter(System.out)); I looked at the DOMWriter.java example in the latest XerxesJ release. When I try to output the XML document using OutputStreamWriter, XercesJ prints the message: [#document: null] Sun's jaxp will not even compile the class, citing "Can't convert org.w3c.dom.Document to char[]". Any references you can send would be much appreciated. Keith Pajkowski T1Xpert.com 212 771 1059 ------_=_NextPart_001_01BFCB2D.BF2777F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable building DOM tree from scratch

We want to convert a data structure to = an XML equivalent on the fly, i.e., build a DOM tree without actually = reading in an XML document. The only example of this I can find is = written in XML4J and made use of the (now deprecated) class TXDocument. = In this example the completed document was output using the = instruction:

     = ((TXDocument)doc).printWithFormat(new PrintWriter(System.out));

I looked at the DOMWriter.java example = in the latest XerxesJ release. When I try to output the XML document = using OutputStreamWriter, XercesJ prints the message:

 
     = [#document:  null]

Sun's jaxp will not even compile the = class, citing "Can't convert org.w3c.dom.Document to = char[]".

Any references you can send would be = much appreciated.


Keith Pajkowski
T1Xpert.com
212 771 1059


------_=_NextPart_001_01BFCB2D.BF2777F0--