Hi, all
I have written a simple parse program with libxml2.7.3. I parse a html file
with htmlReadFile() function provided in HTMLParser.h .the code is :
mydoc = htmlReadFile(myfile, NULL, 0)
but it report error, then I set the parse option as HTML_PARSE_RECOVER
|HTML_PARSE_NOWORNING , the parsing process is not all right also. the report
is : HTML Parser Error: Element script embeds closed tag!
I have also tyied other html parsing functions like :
htmlReadDoc,
htmlParseDocument,
htmlParseChunk ,
htmlReadMemory ,
htmlCtxtReadFile ,
which are defined in HTMLParser.h file, but totally failed. I know there must
be some mistake when I was using this library. But I really don't know how to
parse the html file with libxml2. Would you please give me an example to parse
HTML files with libxml2 ?
Thank you
yours
穿越地震带 纪念汶川地震一周年
_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel