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

Classes

struct  nyx_xmldoc_s
 
struct  nyx_xmldoc_t
 

Typedefs

typedef struct nyx_xmldoc_s nyx_xmldoc_t
 

Enumerations

enum  nyx_xml_type_t {
  NYX_XML_ELEM ,
  NYX_XML_ATTR ,
  NYX_XML_COMMENT ,
  NYX_XML_CDATA ,
  NYX_XML_TEXT
}
 XML node types. More...
 

Functions

nyx_xmldoc_tnyx_xmldoc_t::nyx_xmldoc_parse_buff (__ZEROABLE__ size_t size, __NULLABLE__ BUFF_t buff)
 Parses an XML document from a string buffer.
 
nyx_xmldoc_tnyx_xmldoc_t::nyx_xmldoc_parse (__NULLABLE__ STR_t text)
 Parses an XML document from a string.
 
void nyx_xmldoc_t::nyx_xmldoc_free (__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.

Enumeration Type Documentation

◆ nyx_xml_type_t

XML node types.

Enumerator
NYX_XML_ELEM 

Element node.

NYX_XML_ATTR 

Attribute node.

NYX_XML_COMMENT 

Comment node.

NYX_XML_CDATA 

CDATA content.

NYX_XML_TEXT 

Text content.

Function Documentation

◆ nyx_xmldoc_parse_buff()

nyx_xmldoc_t * nyx_xmldoc_parse_buff ( __ZEROABLE__ size_t size,
__NULLABLE__ BUFF_t buff )

Parses an XML document from a string buffer.

Parameters
sizeThe string size.
buffThe string pointer.
Returns
The new XML document.

◆ nyx_xmldoc_parse()

nyx_xmldoc_t * nyx_xmldoc_parse ( __NULLABLE__ STR_t text)

Parses an XML document from a string.

Parameters
textThe string.
Returns
The new XML document.

◆ nyx_xmldoc_free()

void nyx_xmldoc_free ( __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
xmldocThe provided XML document.
Returns
The string representing the provided XML document.