Return-Path: Mailing-List: contact general-help@xml.apache.org; run by ezmlm Delivered-To: mailing list general@xml.apache.org Received: (qmail 42788 invoked from network); 25 Jan 2000 19:14:26 -0000 Received: from sauria.com (HELO wall) (postfix@216.98.236.70) by 63.211.145.10 with SMTP; 25 Jan 2000 19:14:26 -0000 Received: from boojum (wall.sauria.com [127.0.0.1]) by wall (Postfix) with SMTP id CC2BB9E009 for ; Tue, 25 Jan 2000 11:14:24 -0800 (PST) Message-ID: <003501bf6767$d850a740$7a160609@cupertino.ibm.com> From: "Ted Leung" To: References: <388DF185.8B4F5457@widesoft.com.br> Subject: Re: ProjectX to Xerces migration Date: Tue, 25 Jan 2000 11:10:28 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Rogerio Try setting the feature http://apache.org/xml/features/dom/include-ignorable-whitespace to false. This will keep ignorable whitespace out of the DOM ----- Original Message ----- From: "Rogerio Meneguelli Gatto" To: Sent: Tuesday, January 25, 2000 10:55 AM Subject: ProjectX to Xerces migration > Hello, > > I was developing an application using Sun's ProjectX parser, and now I'm > migrating it to Xerces Java. > > It happens that the two parsers give me two different DOM trees for this XML: > > > > ... > > While Sun's parser ommitted the #text node between the two tags (the newline), > Xerces is not ignoring it, although definition's DTD declarations doesn't allow > #PCDATA: > > > > I'm using the validating parser from both packages. Is there a way to duplicate > ProjectX's behaviour using Xerces? > > TIA > -- > Rog�rio Meneguelli Gatto | Visite http://www.widesoft.com.br | God is a comic > ICQ# 25775025 | e veja a solu��o ideal para | playing to an > +55 19 451-6300 (com) | se comunicar com | audience that's > +55 19 234-6923 (res) | fornecedores e clientes | afraid to laugh