xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Leung" <twle...@sauria.com>
Subject Re: ProjectX to Xerces migration
Date Tue, 25 Jan 2000 19:10:28 GMT
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" <gatto@widesoft.com.br>
To: <general@xml.apache.org>
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:
>
> <definition>
>   <group code='PM'>
>   ...
>
> 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:
>
> <!ELEMENT definition (group)+>
>
> 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


Mime
View raw message