62 #define PG_GETARG_XML_P(n) DatumGetXmlP(PG_GETARG_DATUM(n))
63 #define PG_RETURN_XML_P(x) PG_RETURN_POINTER(x)
74 Datum *named_argvalue,
bool *named_argnull,
75 Datum *argvalue,
bool *argnull);
77 extern xmltype *
xmlpi(
const char *target,
text *
arg,
bool arg_is_null,
bool *result_is_null);
#define PG_DETOAST_DATUM(datum)
static Datum PointerGetDatum(const void *X)
@ XML_STANDALONE_NO_VALUE
xmltype * xmlconcat(List *args)
struct PgXmlErrorContext PgXmlErrorContext
PGDLLIMPORT int xmloption
static xmltype * DatumGetXmlP(Datum X)
void xml_ereport(PgXmlErrorContext *errcxt, int level, int sqlcode, const char *msg)
text * xmltotext_with_options(xmltype *data, XmlOptionType xmloption_arg, bool indent)
static Datum XmlPGetDatum(const xmltype *X)
xmltype * xmlparse(text *data, XmlOptionType xmloption_arg, bool preserve_whitespace)
char * map_sql_identifier_to_xml_name(const char *ident, bool fully_escaped, bool escape_period)
PGDLLIMPORT int xmlbinary
bool xml_is_document(xmltype *arg)
bool pg_xml_error_occurred(PgXmlErrorContext *errcxt)
char * escape_xml(const char *str)
char * map_xml_name_to_sql_identifier(const char *name)
xmltype * xmlpi(const char *target, text *arg, bool arg_is_null, bool *result_is_null)
void pg_xml_done(PgXmlErrorContext *errcxt, bool isError)
PgXmlErrorContext * pg_xml_init(PgXmlStrictness strictness)
PGDLLIMPORT const TableFuncRoutine XmlTableRoutine
void pg_xml_init_library(void)
char * map_sql_value_to_xml_value(Datum value, Oid type, bool xml_escape_strings)
xmltype * xmlelement(XmlExpr *xexpr, Datum *named_argvalue, bool *named_argnull, Datum *argvalue, bool *argnull)
xmltype * xmlroot(xmltype *data, text *version, int standalone)
@ PG_XML_STRICTNESS_LEGACY
@ PG_XML_STRICTNESS_WELLFORMED