[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Interesting QDomDocument::setContent variant
From:       David Faure <faure () kde ! org>
Date:       2004-02-16 10:17:10
Message-ID: 200402161117.10918.faure () kde ! org
[Download RAW message or body]

On Monday 16 February 2004 10:54, Nicolas Goutte wrote:
> While reading the Qt doc, I have found an interesting QDomDocument::setContent 
> variant:
> 
> bool QDomDocument::setContent( QXmlInputSource *source, QXmlReader *reader, 
> QString *errorMsg, int *errorLine, int *errorColumn  )
> 
> It permits to have access to the SAX parser, therefore also to set the SAX 
> parser, for example to alway report white space, including things like:
> <test>                               </test>

Interesting - for the old formats.
The OASIS format has a special tag for whitespace to ensure whitespace is preserved.
This is more reliable than using real whitespace and depending on the XML parser
to respect it.

-- 
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic