[Expat-discuss] Re: Tabs/Carriage Returns Removal...

Karl Waclawek karl at waclawek.net
Mon Jan 19 14:45:52 EST 2004


> Does anyone know how to make expat ignore tabs and
> carriage retuns in xml file??? 
> 
> I would like to parse an xml file that contains
> tabs/carriage returns but have the callback functions
> return me tags, attributes and values without the tabs
> and carriage returns.

You will have to filter these out in your call-backs.
Should not be too difficult. When your characterData handler
accumulates data into a buffer (usual approach) it can
uses this opportunity to ignore tabs and carriage returns.

Karl




More information about the Expat-discuss mailing list