libxml-rs 0.1.0-alpha.8

Phase 7: C14N, XML Reader/Writer, Regex, Automata, Debug. Native-Rust forensic reimplementation of libxml2+libxslt with C ABI drop-in replacement. 957 tests passing, C14N (inclusive+exclusive), XML Reader (full tree+stream+attribute traversal), XML Writer (document+element+attribute+PI+comment), Regex (44 tests: NFA, anchors, char classes, quantifiers, determinism, incremental execution), Automata (state machine infrastructure), Debug (tree dump, ls, attr dump), all prior surfaces.
Documentation
/**
 * @file
 *
 * HTML parser API for libxml-rs
 */

#ifndef __HTML_PARSER_H__
#define __HTML_PARSER_H__

#include <libxml/xmlversion.h>
#include <libxml/tree.h>
#include <libxml/parser.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef xmlDocPtr htmlDocPtr;

XMLPUBFUN htmlDocPtr htmlParseFile(const char *filename, const char *encoding);
XMLPUBFUN htmlDocPtr htmlParseMemory(const char *buffer, int size);
XMLPUBFUN htmlDocPtr htmlParseDoc(const xmlChar *cur, const char *encoding);
XMLPUBFUN void *htmlCreateFileParserCtxt(const char *filename, const char *encoding);
XMLPUBFUN void htmlFreeParserCtxt(void *ctxt);
XMLPUBFUN void htmlInitParser(void);
XMLPUBFUN void htmlCleanupParser(void);

#ifdef __cplusplus
}
#endif

#endif /* __HTML_PARSER_H__ */