On Sat, May 14, 2005 at 01:44:10PM -0700, Abraham Nelson wrote:
> Given the following the code below, why does
> htmlCtxtReadFile/Doc/Memory only parse the HTML
> comments? The docs don't provide any insights on why
> it does this.
> 
> xmlDocPtr document;
> htmlParserCtxtPtr parserContext=xmlNewParserCtxt();

  Because this creates an XML parser context and not an HTML
parser context is my best bet

> document=htmlCtxtReadFile(parserContext,"http://www.pantos.org/atw/h-valid.html";,(char*)"iso-8859-1",NULL);

  use htmlReadFile() directly.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to