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 Martín Lahittette <ml...@telpin.com.ar> on 2001/01/17 15:59:45 UTC

Ignoring whitespaces in SAX

Hi, I'm using a SAX Parser and I'd like the parser to ignore whitespaces...
Is there any Feature to do that?

Thanks, Martín


Re: Ignoring whitespaces in SAX

Posted by Milind Gadre <mi...@ecplatforms.com>.
Extend the Xerces SAXParser class and over-ride

    public void ignorableWhitespace(char[] ch,
                                int start,
                                int length)
                         throws java.lang.Exception

to do whatever you want.

> I'm sorry but setIncludeIgnorableWhitespace is a method of
> org.apache.xerces.parsers.DOMParser and I'm using
> org.apache.xerces.parsers.SAXParser.
> 



RE: Ignoring whitespaces in SAX

Posted by Martín SALVADORI <ms...@ciudad.com.ar>.
I'm sorry but setIncludeIgnorableWhitespace is a method of
org.apache.xerces.parsers.DOMParser and I'm using
org.apache.xerces.parsers.SAXParser.

----- Mensaje original -----
De: Milind Gadre <mi...@ecplatforms.com>
Para: <xe...@xml.apache.org>
Enviado: miércoles 17 de enero de 2001 14:02
Asunto: Re: Ignoring whitespaces in SAX


> > Hi, I'm using a SAX Parser and I'd like the parser to ignore
> whitespaces...
> > Is there any Feature to do that?
> >
> > Thanks, Martín
>
>     parser.setIncludeIgnorableWhitespace(false);
>
> Regards...
>
> Milind Gadre
> ecPlatforms, Inc
> 901 Mariner's Island Blvd, Suite 565
> San Mateo, CA 94404
> C: 510-919-0596
> F: 815-352-0779
> milind@ecplatforms.com
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
>


Re: Ignoring whitespaces in SAX

Posted by Milind Gadre <mi...@ecplatforms.com>.
> Hi, I'm using a SAX Parser and I'd like the parser to ignore
whitespaces...
> Is there any Feature to do that?
>
> Thanks, Martín

    parser.setIncludeIgnorableWhitespace(false);

Regards...

Milind Gadre
ecPlatforms, Inc
901 Mariner's Island Blvd, Suite 565
San Mateo, CA 94404
C: 510-919-0596
F: 815-352-0779
milind@ecplatforms.com