Simple C Expat Wrapper (SCEW)
1.1.7
|
Allocate and free a parser. More...
Files | |
file | parser.h |
SCEW parser handling routines. | |
Functions | |
SCEW_API scew_parser * | scew_parser_create (void) |
Creates a new parser. More... | |
SCEW_API scew_parser * | scew_parser_namespace_create (XML_Char separator) |
Creates a new parser with namespaces support. More... | |
SCEW_API void | scew_parser_free (scew_parser *parser) |
Frees a parser memory structure. More... | |
Allocate and free a parser.
SCEW_API scew_parser* scew_parser_create | ( | void | ) |
Creates a new parser.
A parser is necessary to load XML documents. Note that a parser might be re-used to load multiple XML documents, thus it is not necessary to create a parser for each XML document, but to call scew_parser_load.
SCEW_API scew_parser* scew_parser_namespace_create | ( | XML_Char | separator | ) |
Creates a new parser with namespaces support.
Note that Expat expands the resulting elements and attributes, that is, they are formed by the namespace URI, the given namespace separator and the local part of the name.
separator | the character between namespace URI and identifier. If 0 is given, no separation is performed. |
SCEW_API void scew_parser_free | ( | scew_parser * | parser | ) |
Frees a parser memory structure.
If a NULL parser is given, this function takes no action.