Re: [xml] Dealing with carriage returns and tabs in xml documents



On Thu, Mar 21, 2002 at 06:48:39PM +0100, Patrick Hartmann wrote:
Hi,
[...]
using SAX all carriage returns and tabulators are considered as characters 
and charactersSAXFunc shows them all. 
 
Is there a way to filter them or better how can I get ONLY text without CR 
from the callback function charactersSAXFunc(void *ctx, const xmlChar *ch, 
int len)???

  Someone didn't read the FAQ:
    http://xmlsoft.org/FAQ.html#Developer
    item 2

  In a nutshell, use xmlKeepBlanksDefault(0)

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]