You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Rahul Jain <ra...@jtcsv.com> on 2000/06/19 20:04:40 UTC

Re: SAXParser::docPI()

So we do not have a consensus on this, yet.

This same issue is relevant for Xerces-Java too.

For now, just to keep the two parsers (Xerces-C and
Xerces-Java) in sync. wrt this behaviour, I am inclined to
just let the 'PI' go through to the application and suppress
any 'comments', 'characters' and 'ignoreableWhitespace'
occurring before the root element.

I really need to get Xerces-C 1.2 out of the door. I am
targetting tomorrow.

Once we all decide here on this topic, we can make the necessary
changes, which will get reflected in the subsequent releases.

rahul


----- Original Message ----- 
From: "Rich Taylor" <rt...@webmd.net>
To: <xe...@xml.apache.org>
Sent: Monday, June 19, 2000 8:08 AM
Subject: RE: SAXParser::docPI()


> I would encourage you to err on the side of providing
> access to this non-functional data instead of filtering
> it out.  It seems harmless since the data is clearly
> identified as "ignorable".
> 
> The only purpose I can think of is if someone wants to 
> save every scrap of the original file for a byte-accurate
> recreation later - but this may be important for some
> application.
> 
> - Rich Taylor, Healtheon/WebMD
> 
> 
> > -----Original Message-----
> > From: Dean Roddey [mailto:droddey@charmedquark.com]
> > Sent: Friday, June 16, 2000 10:46 PM
> > To: xerces-c-dev@xml.apache.org; Rahul Jain
> > Subject: Re: SAXParser::docPI()
> > 
> > 
> > > However, I was kind of surprised to find the 
> > 'ignorableWhitespace' method
> > > being called even when the input XML file did not have any 
> > specified DTD.
> > > I assumed that this would only be invoked if validation was being
> > > performed.
> > 
> > The deal is that all of the whitespace before and fater the root 
> > element is
> > always passed out as ignorable whitespace, since that's what it is. So
> > whitespace might need to still be suppressed outside of the root element,
> > for the SAX parser.
> > 
> > --------------------------
> > Dean Roddey
> > The CIDLib C++ Frameworks
> > Charmed Quark Software
> > droddey@charmedquark.com
> > http://www.charmedquark.com
> > 
> > "You young, and you gotcha health. Whatchoo wanna job fer?"
> > 
> > 
> >