#include <crm_internal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <bzlib.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xmlIO.h>
#include <crm/crm.h>
#include <crm/common/xml.h>
#include <crm/common/xml_io.h>
#include "crmcommon_private.h"
#include <crm/common/xml_io_compat.h>
Go to the source code of this file.
|
xmlNode * | pcmk__xml_read (const char *filename) |
|
xmlNode * | pcmk__xml_parse (const char *input) |
|
void | pcmk__xml_string (const xmlNode *data, uint32_t options, GString *buffer, int depth) |
|
int | pcmk__xml_write_fd (const xmlNode *xml, const char *filename, int fd, bool compress, unsigned int *nbytes) |
|
int | pcmk__xml_write_file (const xmlNode *xml, const char *filename, bool compress, unsigned int *nbytes) |
|
int | pcmk__xml2fd (int fd, xmlNode *cur) |
|
void | save_xml_to_file (const xmlNode *xml, const char *desc, const char *filename) |
|
xmlNode * | filename2xml (const char *filename) |
|
xmlNode * | stdin2xml (void) |
|
xmlNode * | string2xml (const char *input) |
|
char * | dump_xml_formatted (const xmlNode *xml) |
|
char * | dump_xml_formatted_with_text (const xmlNode *xml) |
|
char * | dump_xml_unformatted (const xmlNode *xml) |
|
int | write_xml_fd (const xmlNode *xml, const char *filename, int fd, gboolean compress) |
|
int | write_xml_file (const xmlNode *xml, const char *filename, gboolean compress) |
|
◆ parse_xml_recover
#define parse_xml_recover |
( |
|
result, |
|
|
|
fn, |
|
|
|
... |
|
) |
| |
Value:do { \
\
crm_warn("Successfully recovered from XML errors " \
"(note: a future release will treat this as a " \
"fatal failure)"); \
} \
} \
} while (0);
#define PCMK__XML_PARSE_OPTS_WITH_RECOVER
pcmk__action_result_t result
#define PCMK__XML_PARSE_OPTS_WITHOUT_RECOVER
Definition at line 141 of file xml_io.c.
◆ PCMK__XML_PARSE_OPTS_WITH_RECOVER
#define PCMK__XML_PARSE_OPTS_WITH_RECOVER |
Value:(XML_PARSE_NOBLANKS \
|XML_PARSE_RECOVER)
Definition at line 33 of file xml_io.c.
◆ PCMK__XML_PARSE_OPTS_WITHOUT_RECOVER
#define PCMK__XML_PARSE_OPTS_WITHOUT_RECOVER (XML_PARSE_NOBLANKS) |
◆ dump_xml_formatted()
char* dump_xml_formatted |
( |
const xmlNode * |
xml | ) |
|
◆ dump_xml_formatted_with_text()
char* dump_xml_formatted_with_text |
( |
const xmlNode * |
xml | ) |
|
◆ dump_xml_unformatted()
char* dump_xml_unformatted |
( |
const xmlNode * |
xml | ) |
|
◆ filename2xml()
xmlNode* filename2xml |
( |
const char * |
filename | ) |
|
◆ pcmk__xml2fd()
int pcmk__xml2fd |
( |
int |
fd, |
|
|
xmlNode * |
cur |
|
) |
| |
◆ pcmk__xml_parse()
xmlNode* pcmk__xml_parse |
( |
const char * |
input | ) |
|
◆ pcmk__xml_read()
xmlNode* pcmk__xml_read |
( |
const char * |
filename | ) |
|
◆ pcmk__xml_string()
void pcmk__xml_string |
( |
const xmlNode * |
data, |
|
|
uint32_t |
options, |
|
|
GString * |
buffer, |
|
|
int |
depth |
|
) |
| |
◆ pcmk__xml_write_fd()
int pcmk__xml_write_fd |
( |
const xmlNode * |
xml, |
|
|
const char * |
filename, |
|
|
int |
fd, |
|
|
bool |
compress, |
|
|
unsigned int * |
nbytes |
|
) |
| |
◆ pcmk__xml_write_file()
int pcmk__xml_write_file |
( |
const xmlNode * |
xml, |
|
|
const char * |
filename, |
|
|
bool |
compress, |
|
|
unsigned int * |
nbytes |
|
) |
| |
◆ save_xml_to_file()
void save_xml_to_file |
( |
const xmlNode * |
xml, |
|
|
const char * |
desc, |
|
|
const char * |
filename |
|
) |
| |
◆ stdin2xml()
xmlNode* stdin2xml |
( |
void |
| ) |
|
◆ string2xml()
xmlNode* string2xml |
( |
const char * |
input | ) |
|
◆ write_xml_fd()
int write_xml_fd |
( |
const xmlNode * |
xml, |
|
|
const char * |
filename, |
|
|
int |
fd, |
|
|
gboolean |
compress |
|
) |
| |
◆ write_xml_file()
int write_xml_file |
( |
const xmlNode * |
xml, |
|
|
const char * |
filename, |
|
|
gboolean |
compress |
|
) |
| |