libyang  1.0.253
YANG data modeling language library
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
XML parser options
Collaboration diagram for XML parser options:

Macros

#define LYXML_PARSE_MULTIROOT   0x01
 
#define LYXML_PARSE_NOMIXEDCONTENT   0x02
 

Detailed Description

Various options to change behavior of XML read functions (lyxml_parse_*()).

Macro Definition Documentation

#define LYXML_PARSE_MULTIROOT   0x01

By default, XML is supposed to be well-formed so the input file or memory chunk contains only a single XML tree. This option make parser to read multiple XML trees from a single source (regular file terminated by EOF or memory chunk terminated by NULL byte). In such a case, the returned XML element has other siblings representing the other XML trees from the source.

Definition at line 121 of file xml.h.

#define LYXML_PARSE_NOMIXEDCONTENT   0x02

By default, the parser allows elements with mixed content (text content mixed with standard XML children). This option cases to handle such elements as invalid input (#LYVE_XML_INVAL).

Definition at line 130 of file xml.h.