Some Improvements on Adblocker

Maksim Orlovich mo85 at cornell.edu
Mon Oct 9 18:51:08 BST 2006


> void XMLTokenizer::write( const TokenizerString &str, bool appendData )
> {
>     if ( !m_noErrors && appendData )
>         return;
>     if ( appendData ) {
>         m_source.appendXML( str.toString() );
>
>     } else {
>         m_source.setData( str.toString() );
>     }
>     // Here will I add my code
>     m_noErrors = m_reader.parseContinue();
> }
>
> Can I access the string html code with m_source.data?

That code is used for XML parsing, not HTML. And, uhm, I would suggest
that the HTML tokenizer is the worst place to touch for your first
project...






More information about the kfm-devel mailing list