#include <libxml/xmlreader.h>
Functions | |
void | xmlutil_error_func (void *arg, const char *msg, xmlParserSeverities severity, xmlTextReaderLocatorPtr locator) |
int | xmlutil_parse_color (char *color, unsigned long *parsed) |
int | xmlutil_get_current_line (xmlTextReaderPtr reader) |
int | xmlutil_read_attribute (xmlTextReaderPtr reader, int line, const xmlChar **name, const xmlChar **value) |
int | xmlutil_check_dir_path (char **dir_path) |
void xmlutil_error_func | ( | void * | arg, | |
const char * | msg, | |||
xmlParserSeverities | severity, | |||
xmlTextReaderLocatorPtr | locator | |||
) |
Parser error callback function.
Generates log messages if a parser error occurs.
arg | user argument | |
msg | error message | |
severity | severity info | |
locator | location information |
int xmlutil_parse_color | ( | char * | color, | |
unsigned long * | parsed | |||
) |
Parses HTML color encoding.
color | the color string | |
parsed | the parsed color in 'R, B, G, Alpha' format (return value) |
int xmlutil_get_current_line | ( | xmlTextReaderPtr | reader | ) |
Provides the current line number in a XML document.
reader | the XML reader |
int xmlutil_read_attribute | ( | xmlTextReaderPtr | reader, | |
int | line, | |||
const xmlChar ** | name, | |||
const xmlChar ** | value | |||
) |
Reads the attribute name and value of a XML node.
reader | the XML reader | |
line | current line in XML document | |
name | attribute name (return value) | |
value | attribute value (return value) |
int xmlutil_check_dir_path | ( | char ** | dir_path | ) |
Adds a '/' character to a directory path, if necessary.
dir_path | directory path |