Ignoring whitespaces while parsing XML with expat

Tarun Garg <[email protected]> Mon, 9 Aug 2010 14:03:33 +0530
Newsgroups gmane.text.xml.expat.general
Message-ID <AAC785F15EE02F4894D0CF11020F019BC617268472@INDIAMBX01.corp.adobe.com>
Is there a way to ignore unneeded whitespaces (like those that get introduced while pretty-printing XML), while parsing the XML using expat parser ?

Getting those whitespaces as it is; while parsing/opening does not look good when opened. I want to get rid of these at open time itself.

Regards,
Tarun Garg