1#ifndef COIN_XMLDOCUMENT_H
2#define COIN_XMLDOCUMENT_H
27#include <Inventor/C/XML/types.h>
36COIN_DLL_API cc_xml_doc * cc_xml_doc_new(
void);
37COIN_DLL_API
void cc_xml_doc_delete_x(cc_xml_doc * doc);
40COIN_DLL_API
void cc_xml_doc_set_filter_cb_x(cc_xml_doc * doc, cc_xml_filter_cb * cb,
void * userdata);
41COIN_DLL_API
void cc_xml_doc_get_filter_cb(
const cc_xml_doc * doc, cc_xml_filter_cb *& cb,
void *& userdata);
44COIN_DLL_API SbBool cc_xml_doc_read_file_x(cc_xml_doc * doc,
const char * path);
45COIN_DLL_API SbBool cc_xml_doc_read_buffer_x(cc_xml_doc * doc,
const char * buffer,
size_t buflen);
47COIN_DLL_API SbBool cc_xml_doc_parse_buffer_partial_x(cc_xml_doc * doc,
const char * buffer,
size_t buflen);
48COIN_DLL_API SbBool cc_xml_doc_parse_buffer_partial_done_x(cc_xml_doc * doc,
const char * buffer,
size_t buflen);
50COIN_DLL_API SbBool cc_xml_doc_write_to_buffer(
const cc_xml_doc * doc,
char *& buffer,
size_t & bytes);
51COIN_DLL_API SbBool cc_xml_doc_write_to_file(
const cc_xml_doc * doc,
const char * path);
53COIN_DLL_API cc_xml_path * cc_xml_doc_diff(
const cc_xml_doc * doc,
const cc_xml_doc * other);
56COIN_DLL_API
void cc_xml_doc_set_filename_x(cc_xml_doc * doc,
const char * path);
57COIN_DLL_API
const char * cc_xml_doc_get_filename(
const cc_xml_doc * doc);
61COIN_DLL_API cc_xml_elt * cc_xml_doc_get_root(
const cc_xml_doc * doc);
62COIN_DLL_API
void cc_xml_doc_set_current_x(cc_xml_doc * doc, cc_xml_elt * elt);
63COIN_DLL_API cc_xml_elt * cc_xml_doc_get_current(
const cc_xml_doc * doc);
64COIN_DLL_API
void cc_xml_doc_strip_whitespace_x(cc_xml_doc * doc);
66COIN_DLL_API
void cc_xml_doc_set_root_x(cc_xml_doc * doc, cc_xml_elt * root);
68COIN_DLL_API
const cc_xml_elt * cc_xml_doc_find_element(
const cc_xml_doc * doc, cc_xml_path * path);
69COIN_DLL_API
const cc_xml_elt * cc_xml_doc_find_next_element(
const cc_xml_doc * doc, cc_xml_elt * elt, cc_xml_path * path);
70COIN_DLL_API cc_xml_elt * cc_xml_doc_create_element_x(cc_xml_doc * doc, cc_xml_path * path);