[Kbabel] Re: Kbable errors
Stanislav Visnovsky
visnovsky@nenya.ms.mff.cuni.cz
Sun, 12 Jan 2003 15:15:41 +0100 (CET)
On Sat, 11 Jan 2003, Marco Wegner wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Saturday 11 January 2003 11:48, Stanislav Visnovsky wrote:
> > > <br> - valid
> > > <BR> - error (case sensitivity)
> >
> > Not sure about this, add it as a special case? Is it that common?
>
> You could perhaps resurrect the QRegExp'ses and use something like this in the
> xml datatool?
>
> QRegExp rx;
> rx.setCaseSensitive( false );
> rx.setPattern( "<br>" );
> text.replace( rx, "<br/> );
> rx.setPattern( "<hr>" );
> text.replace( rx, "<hr/> );
I have found out that it's better to remove them -> text.replace( rx,
""). XML parser does not need to parse more than necessary
:-)
Stanislav