RTS API Documentation  1.10.11
Data Fields
switch_xml Struct Reference

A representation of an XML tree. More...

#include <switch_xml.h>

+ Collaboration diagram for switch_xml:

Data Fields

char * name
 
char ** attr
 
char * txt
 
char * free_path
 
switch_size_t off
 
switch_xml_t next
 
switch_xml_t sibling
 
switch_xml_t ordered
 
switch_xml_t child
 
switch_xml_t parent
 
uint32_t flags
 
switch_bool_t is_switch_xml_root_t
 
uint32_t refs
 
const char * open
 
const char * close
 

Detailed Description

A representation of an XML tree.

Definition at line 79 of file switch_xml.h.

Field Documentation

◆ attr

char** switch_xml::attr

tag attributes { name, value, name, value, ... NULL }

Definition at line 83 of file switch_xml.h.

Referenced by switch_xml_add_child(), switch_xml_attr(), switch_xml_free(), switch_xml_new(), switch_xml_open_tag(), switch_xml_set_attr(), switch_xml_toxml_buf_ex(), and switch_xml_toxml_r().

◆ child

switch_xml_t switch_xml::child

head of sub tag list, NULL if none

Definition at line 97 of file switch_xml.h.

Referenced by switch_core_session_request_xml(), switch_xml_child(), switch_xml_cut(), switch_xml_free(), switch_xml_insert(), and switch_xml_toxml_r().

◆ close

const char* switch_xml::close

pointer to start of closing tag, '<', in the original parsed text

Definition at line 108 of file switch_xml.h.

Referenced by switch_xml_close_tag().

◆ flags

uint32_t switch_xml::flags

◆ free_path

char* switch_xml::free_path

path to free on destroy

Definition at line 87 of file switch_xml.h.

Referenced by switch_xml_free(), and switch_xml_parse_file().

◆ is_switch_xml_root_t

switch_bool_t switch_xml::is_switch_xml_root_t

is_switch_xml_root bool

Definition at line 103 of file switch_xml.h.

◆ name

char* switch_xml::name

◆ next

switch_xml_t switch_xml::next

◆ off

switch_size_t switch_xml::off

tag offset from start of parent tag character content

Definition at line 89 of file switch_xml.h.

Referenced by switch_xml_add_child(), switch_xml_insert(), and switch_xml_toxml_r().

◆ open

const char* switch_xml::open

pointer to end of opening tag, '>', in the original parsed text

Definition at line 106 of file switch_xml.h.

Referenced by switch_xml_open_tag().

◆ ordered

switch_xml_t switch_xml::ordered

next tag, same section and depth, in original order

Definition at line 95 of file switch_xml.h.

Referenced by switch_xml_cut(), switch_xml_free(), switch_xml_insert(), and switch_xml_toxml_r().

◆ parent

switch_xml_t switch_xml::parent

◆ refs

uint32_t switch_xml::refs

Definition at line 104 of file switch_xml.h.

Referenced by switch_xml_free(), switch_xml_root(), and switch_xml_set_root().

◆ sibling

switch_xml_t switch_xml::sibling

next tag with different name in same section and depth

Definition at line 93 of file switch_xml.h.

Referenced by switch_core_session_request_xml(), switch_xml_child(), switch_xml_cut(), and switch_xml_insert().

◆ txt

char* switch_xml::txt

The documentation for this struct was generated from the following file: