27 #ifndef OSCAP_ELEMENTS_H_
28 #define OSCAP_ELEMENTS_H_
30 #include <libxml/xmlreader.h>
31 #include <libxml/xmlwriter.h>
37 #define OSCAP_XMLNS_XSI BAD_CAST "http://www.w3.org/2001/XMLSchema-instance"
42 typedef void (*oscap_xml_value_consumer) (
char *,
void *);
43 int oscap_parser_text_value(xmlTextReaderPtr reader, oscap_xml_value_consumer consumer,
void *user);
44 void oscap_text_consumer(
char *text,
void *user);
47 bool oscap_to_start_element(xmlTextReaderPtr reader,
int depth);
49 char *oscap_element_string_copy(xmlTextReaderPtr reader);
51 const char *oscap_element_string_get(xmlTextReaderPtr reader);
53 int oscap_element_depth(xmlTextReaderPtr reader);
55 char *oscap_get_xml(xmlTextReaderPtr reader);
57 time_t oscap_get_date(
const char *date);
59 time_t oscap_get_datetime(
const char *date);
61 xmlNode *oscap_xmlstr_to_dom(xmlNode *parent,
const char *elname,
const char *content);
69 int oscap_xml_save_filename(
const char *filename, xmlDocPtr doc);
77 int oscap_xml_save_filename_free(
const char *filename, xmlDocPtr doc);
79 xmlNs *lookup_xsi_ns(xmlDoc *doc);
General OpenScap functions and types.
Define mapping between symbolic constant and its string representation.
Definition: util.h:310