examples/libxml.c
error_code parse_chunk(context *c, const uint8_t *data, size_t len)
{
	hubbub_error err;

	err = hubbub_parser_parse_chunk(c->parser, (uint8_t *) data, len);
	if (err == HUBBUB_ENCODINGCHANGE)
		return ENCODINGCHANGE;

	return OK;
}
/**
 * Parse a chunk of the input document
 *
 * \param c     Parsing context
 * \param data  Data buffer
 * \param len   Length, in bytes, of data in buffer
 * \return OK on success,
 *         ENCODINGCHANGE if the encoding needs changing
 */
Parse a chunk of the input document
\param c     Parsing context
\param data  Data buffer
\param len   Length, in bytes, of data in buffer
\return OK on success,
ENCODINGCHANGE if the encoding needs changing
Parse a chunk of the input document \ param c Parsing context \ param data Data buffer \ param len Length in bytes of data in buffer \ return OK on success ENCODINGCHANGE if the encoding needs changing
error_code parse_chunk(context *c, const uint8_t *data, size_t len)
{
	hubbub_error err;
	err = hubbub_parser_parse_chunk(c->parser, (uint8_t *) data, len);
	if (err == HUBBUB_ENCODINGCHANGE)
		return ENCODINGCHANGE;
	return OK;
}
error_code parse_chunk ( context * c , const uint8_t * data , size_t len ) { hubbub_error err ; err = hubbub_parser_parse_chunk ( c -> parser , ( uint8_t * ) data , len ) ; if ( err == HUBBUB_ENCODINGCHANGE ) return ENCODINGCHANGE ; return OK ; }
Parse a chunk of the input document
 \param c     Parsing context
 \param data  Data buffer
 \param len   Length, in bytes, of data in buffer
 \return OK on success,
         ENCODINGCHANGE if the encoding needs changing
Parse a chunk of the input document \ param c Parsing context \ param data Data buffer \ param len Length in bytes of data in buffer \ return OK on success ENCODINGCHANGE if the encoding needs changing