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

Classes

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

Enumerations

enum  nyx_xmldoc_t::nyx_xml_type_t
 XML node types.

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).


Class Documentation

◆ nyx_xmldoc_t

struct nyx_xmldoc_t

Struct describing an XML document.

Public Types

enum  nyx_xml_type_t
 XML node types.

Public Member Functions

__NYX_NULLABLE__ nyx_xmldoc_tnyx_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_parse (__NYX_NULLABLE__ STR_t string)
 Parses an XML document from a C string.
void nyx_xmldoc_free (__NYX_NULLABLE__ nyx_xmldoc_t *xmldoc)
 Frees memory of the provided XML document.
str_t nyx_xmldoc_to_string (const nyx_xmldoc_t *xmldoc)
 Returns a string representing the provided XML document.

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 with nyx_memory_free.

Definition at line 284 of file dom.c.