36 #ifndef _SML_XML_PARSE_INTERNALS_H_ 37 #define _SML_XML_PARSE_INTERNALS_H_ 39 #include <libxml/xmlreader.h> 40 #include <libxml/xmlwriter.h> 42 #define XML_NODE_START 1 43 #define XML_NODE_TEXT 3 44 #define XML_NODE_CLOSE 15 45 #define XML_NODE_CDATA 4 50 xmlTextReader *reader;
60 SmlBool smlParserExpectNode(
SmlParser *parser,
int type, SmlBool empty,
const char *name,
SmlError **error);
61 SmlBool smlParserGetID(
SmlParser *parser,
unsigned int *
id,
const char *name,
SmlError **error);
62 SmlBool smlParserGetString(
SmlParser *parser,
char **
string,
const char *name,
SmlError **error);
63 SmlBool smlParserGetData(
SmlParser *parser,
char **
string,
unsigned int *size,
const char *name,
SmlError **error);
65 #endif //_SML_XML_PARSE_INTERNALS_H_
SmlProtocolVersion version