yumapro  20.10-12
YumaPro SDK
xml_wr.h File Reference

XML Write functions. More...

#include <stdio.h>
#include <xmlstring.h>
#include "cfg.h"
#include "dlq.h"
#include "getcb.h"
#include "ncxtypes.h"
#include "ses.h"
#include "status.h"
#include "val.h"
#include "val_util.h"
#include "xml_msg.h"
Include dependency graph for xml_wr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  walker_cookie_t_
 XML walker cookie for GET callback processing. More...
 

Functions

void xml_wr_buff (ses_cb_t *scb, const xmlChar *buff, uint32 bufflen)
 Write some xmlChars to the specified session. More...
 
void xml_wr_begin_elem_ex (ses_cb_t *scb, xml_msg_hdr_t *msg, xmlns_id_t parent_nsid, xmlns_id_t nsid, const xmlChar *elname, const dlq_hdr_t *attrQ, boolean isattrq, int32 indent, boolean empty)
 Write a start or empty XML tag to the specified session. More...
 
void xml_wr_begin_elem (ses_cb_t *scb, xml_msg_hdr_t *msg, xmlns_id_t parent_nsid, xmlns_id_t nsid, const xmlChar *elname, int32 indent)
 Write a start XML tag to the specified session without attributes. More...
 
void xml_wr_empty_elem (ses_cb_t *scb, xml_msg_hdr_t *msg, xmlns_id_t parent_nsid, xmlns_id_t nsid, const xmlChar *elname, int32 indent)
 Write an empty XML tag to the specified session without attributes. More...
 
void xml_wr_end_elem (ses_cb_t *scb, xml_msg_hdr_t *msg, xmlns_id_t nsid, const xmlChar *elname, int32 indent)
 Write an end tag to the specified session. More...
 
void xml_wr_string_elem (ses_cb_t *scb, xml_msg_hdr_t *msg, const xmlChar *str, xmlns_id_t parent_nsid, xmlns_id_t nsid, const xmlChar *elname, const dlq_hdr_t *attrQ, boolean isattrq, int32 indent)
 Write a start tag, simple string content, and an end tag to the specified session. More...
 
void xml_wr_uint32_elem (ses_cb_t *scb, xml_msg_hdr_t *msg, uint32 num, xmlns_id_t parent_nsid, xmlns_id_t nsid, const xmlChar *elname, const dlq_hdr_t *attrQ, boolean isattrq, int32 indent)
 Write a start tag, simple uint32 content, and an end tag to the specified session. More...
 
void xml_wr_qname_elem (ses_cb_t *scb, xml_msg_hdr_t *msg, xmlns_id_t val_nsid, const xmlChar *str, xmlns_id_t parent_nsid, xmlns_id_t nsid, const xmlChar *elname, const dlq_hdr_t *attrQ, boolean isattrq, int32 indent, boolean isdefault)
 Write a start tag, QName string content, and an end tag to the specified session. More...
 
void xml_wr_check_val (ses_cb_t *scb, xml_msg_hdr_t *msg, val_value_t *val, int32 indent, val_nodetest_fn_t testfn)
 Write an NCX value in XML encoding while checking nodes for suppression of output with the supplied test fn. More...
 
void xml_wr_val (ses_cb_t *scb, xml_msg_hdr_t *msg, val_value_t *val, int32 indent)
 Output val_value_t node contents only. More...
 
void xml_wr_max_check_val (ses_cb_t *scb, xml_msg_hdr_t *msg, val_value_t *val, int32 indent, val_nodetest_fn_t testfn, boolean force_xmlns)
 Generate entire val_value_t *w/filter) More...
 
void xml_wr_max_check_val_force (ses_cb_t *scb, xml_msg_hdr_t *msg, val_value_t *val, int32 indent, val_nodetest_fn_t testfn, boolean force_xmlns, xmlns_id_t force_nsid, const xmlChar *force_name)
 Generate entire val_value_t *w/filter) More...
 
void xml_wr_full_check_val (ses_cb_t *scb, xml_msg_hdr_t *msg, val_value_t *val, int32 indent, val_nodetest_fn_t testfn, boolean expand_varexpr)
 Generate entire val_value_t *w/filter) More...
 
void xml_wr_full_check_val2 (ses_cb_t *scb, xml_msg_hdr_t *msg, val_value_t *val, int32 indent, val_nodetest_fn_t testfn, boolean force_xmlns, boolean expand_varexpr, xmlns_id_t parent_nsid)
 Generate entire val_value_t *w/filter) More...
 
void xml_wr_file_write_check_val (ses_cb_t *scb, xml_msg_hdr_t *msg, val_value_t *val, int32 indent, val_nodetest_fn_t testfn, boolean expand_varexpr, boolean file_write)
 Generate entire val_value_t *w/filter) More...
 
void xml_wr_full_val (ses_cb_t *scb, xml_msg_hdr_t *msg, val_value_t *val, int32 indent)
 Generate entire val_value_t. More...
 
void xml_wr_full_val_origin (ses_cb_t *scb, xml_msg_hdr_t *msg, val_value_t *val, int32 indent)
 Generate entire val_value_t with NMDA origin. More...
 
status_t xml_wr_check_open_file (FILE *fp, val_value_t *val, xml_attrs_t *attrs, boolean docmode, boolean xmlhdr, boolean withns, boolean expand_varexpr, boolean with_owners, int32 startindent, int32 indent, val_nodetest_fn_t testfn)
 Write the specified value to an open FILE in XML format. More...
 
status_t xml_wr_check_open_file_ex (FILE *fp, val_value_t *val, xml_attrs_t *attrs, boolean docmode, boolean xmlhdr, boolean withns, boolean expand_varexpr, boolean with_owners, boolean top_meta, int32 startindent, int32 indent, val_nodetest_fn_t testfn)
 Write the specified value to an open FILE in XML format Extended. More...
 
status_t xml_wr_check_file (const xmlChar *filespec, val_value_t *val, xml_attrs_t *attrs, boolean docmode, boolean xmlhdr, boolean withns, boolean expand_varexpr, boolean with_owners, int32 startindent, int32 indent, val_nodetest_fn_t testfn)
 Write the specified value to a FILE in XML format. More...
 
status_t xml_wr_file (const xmlChar *filespec, val_value_t *val, xml_attrs_t *attrs, boolean docmode, boolean xmlhdr, boolean withns, boolean expand_varexpr, boolean with_owners, int32 startindent, int32 indent)
 Write the specified value to a FILE in XML format. More...
 
void xml_wr_check_child_obj (ses_cb_t *scb, xml_msg_hdr_t *msg, val_value_t *val, obj_template_t *objnode, int32 indent, val_nodetest_fn_t testfn)
 Generate entire val_value_t *w/filter) for GET2. More...
 
void xml_wr_check_child_obj_ex (ses_cb_t *scb, xml_msg_hdr_t *msg, getcb_get2_t *parent_get2cb, obj_template_t *objnode, int32 indent, val_nodetest_fn_t testfn)
 Write an entire <get2> val_value_t out from the obj_template_t callback. More...
 

Detailed Description

XML Write functions.