Nyx Node
Loading...
Searching...
No Matches
XML serialization / deserialization

Data Structures

struct  nyx_xmldoc_t
 Struct describing an XML document. More...
 

Typedefs

typedef struct nyx_xmldoc_s nyx_xmldoc_t
 

Enumerations

enum  nyx_xmldoc_t::nyx_xml_type_t
 XML node types. More...
 

Functions

__NYX_NULLABLE__ nyx_xmldoc_tnyx_xmldoc_t::nyx_xmldoc_parse_buff (__NYX_ZEROABLE__ size_t size, __NYX_NULLABLE__ BUFF_t buff)
 Parses an XML document from a string buffer.
 
__NYX_NULLABLE__ nyx_xmldoc_tnyx_xmldoc_t::nyx_xmldoc_parse (__NYX_NULLABLE__ STR_t string)
 Parses an XML document from a C string.
 
void nyx_xmldoc_t::nyx_xmldoc_free (__NYX_NULLABLE__ nyx_xmldoc_t *xmldoc)
 Frees memory of the provided XML document.
 
str_t nyx_xmldoc_t::nyx_xmldoc_to_string (const nyx_xmldoc_t *xmldoc)
 Returns a string representing the provided XML document.
 

Detailed Description

XML serialization / deserialization (not available on ARDUINO).

Enumeration Type Documentation

◆ nyx_xml_type_t

XML node types.

Definition at line 1637 of file nyx_node.h.

Function Documentation

◆ nyx_xmldoc_parse_buff()

__NYX_NULLABLE__ nyx_xmldoc_t * nyx_xmldoc_parse_buff ( __NYX_ZEROABLE__ size_t  size,
__NYX_NULLABLE__ BUFF_t  buff 
)

Parses an XML document from a string buffer.

Parameters
sizeString size.
buffString pointer.
Returns
The new XML document.

◆ nyx_xmldoc_parse()

__NYX_NULLABLE__ nyx_xmldoc_t * nyx_xmldoc_parse ( __NYX_NULLABLE__ STR_t  string)

Parses an XML document from a C string.

Parameters
stringC string.
Returns
The new XML document.

◆ nyx_xmldoc_free()

void nyx_xmldoc_free ( __NYX_NULLABLE__ nyx_xmldoc_t xmldoc)

Frees memory of the provided XML document.

Parameters
xmldocThe provided XML document.

◆ nyx_xmldoc_to_string()

str_t nyx_xmldoc_to_string ( const nyx_xmldoc_t xmldoc)

Returns a string representing the provided XML document.

Parameters
xmldocXML document.
Returns
A newly allocated string that represents the provided XML document.
Note
Must be freed.

Definition at line 284 of file dom.c.