[xml] Does libxml parse html like browsers?

2005-03-14 Thread Sebastien Boisvert
I'm currently using TidyLib to correct HTML codes from web site pages into proper XHTML for eventual parsing into a tree, but I'm thinking about using libxml to do this instead because a) Tidylib seems to choke on some pages with errors and b) it might be redundant code since libxml has an HTML par

Re: [xml] Help on finding out badly formed Xml documents.

2005-03-14 Thread SiM
yes there are error callbacks, see both SAX blocks or the http://xmlsoft.org/html/libxml-xmlerror.htmlSee also http://xmlsoft.org/html/libxml-parser.html#xmlStopParserDaniel Thanks for the information,  Daniel, i will try them. Cheers. Simith   -- Daniel Veillard | Red Hat Desktop team http://red

Re: [xml] Help on finding out badly formed Xml documents.

2005-03-14 Thread Daniel Veillard
On Mon, Mar 14, 2005 at 10:35:25AM +, SiM wrote: > > If the document is not well formed, the things i do in the > callback is not working fine (Application related stuff), if i have to > achieve it then i have to keep more information in the context, So i was > wondering

Re: [xml] Help on finding out badly formed Xml documents.

2005-03-14 Thread SiM
Daniel Veillard <[EMAIL PROTECTED]> wrote: On Mon, Mar 14, 2005 at 04:52:22AM +, SiM wrote:> Hi All,> Is there a way to find whether the XML Document being parsed is well formed or not, So that Processing the document can be stopped (or need not be started at all ).> > Foe Eg: something like t

Re: [xml] Help on finding out badly formed Xml documents.

2005-03-14 Thread Daniel Veillard
On Mon, Mar 14, 2005 at 04:52:22AM +, SiM wrote: > Hi All, > Is there a way to find whether the XML Document being parsed is > well formed or not, So that Processing the document can be stopped (or need > not be started at all ). > > Foe Eg: something like this, > > is ther