Re: [xml] HTML Parser



On Wed, May 05, 2004 at 01:21:16PM -0000, spinmar interfree it wrote:

Hi all,

I'd like to use libxml2 HTML Parser to parse web page and extract information.

Reading docs I see that the method htmlParseFile accepts two parameters: file to parse and the encoding. 
But I can't know the web page encoding before parsing it.

If I pass null, does libxml2 discover the web page encoding?

  if it is provided in the meta tags, yes. Automatic discovery: no.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]