Skip to main content

parse_file

Function parse_file 

Source
pub unsafe fn parse_file(
    filename: *const c_char,
    encoding: *const c_char,
) -> *mut _xmlDoc
Expand description

Parse HTML from a file.

§UPSTREAM-PARITY

Equivalent to htmlParseFile in libxml2.

§Safety

  • filename must be a valid null-terminated C string or NULL.
  • encoding must be a valid null-terminated C string or NULL.