mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
use xmlinterface in UPNP
This commit is contained in:
@@ -176,11 +176,11 @@ xmlDocPtr parseXmlFile(const char * filename, bool warning_by_nonexistence /* =
|
||||
}
|
||||
}
|
||||
#else /* USE_LIBXML */
|
||||
xmlDocPtr parseXml(const char * data)
|
||||
xmlDocPtr parseXml(const char * data,const char *encoding)
|
||||
{
|
||||
XMLTreeParser* tree_parser;
|
||||
|
||||
tree_parser = new XMLTreeParser(NULL);
|
||||
tree_parser = new XMLTreeParser(encoding);
|
||||
|
||||
if (!tree_parser->Parse(data, strlen(data), true))
|
||||
{
|
||||
@@ -201,7 +201,7 @@ xmlDocPtr parseXml(const char * data)
|
||||
return tree_parser;
|
||||
}
|
||||
|
||||
xmlDocPtr parseXmlFile(const char * filename, bool warning_by_nonexistence /* = true */)
|
||||
xmlDocPtr parseXmlFile(const char * filename, bool warning_by_nonexistence /* = true */,const char *encoding)
|
||||
{
|
||||
char buffer[2048];
|
||||
XMLTreeParser* tree_parser;
|
||||
@@ -218,7 +218,7 @@ xmlDocPtr parseXmlFile(const char * filename, bool warning_by_nonexistence /* =
|
||||
return NULL;
|
||||
}
|
||||
|
||||
tree_parser = new XMLTreeParser(NULL);
|
||||
tree_parser = new XMLTreeParser(encoding);
|
||||
|
||||
do
|
||||
{
|
||||
|
@@ -66,7 +66,7 @@ std::string Unicode_Character_to_UTF8(const int character);
|
||||
|
||||
std::string convert_UTF8_To_UTF8_XML(const char *s);
|
||||
|
||||
xmlDocPtr parseXml(const char *data);
|
||||
xmlDocPtr parseXmlFile(const char * filename, bool warning_by_nonexistence = true);
|
||||
xmlDocPtr parseXml(const char *data,const char *encoding = NULL);
|
||||
xmlDocPtr parseXmlFile(const char * filename, bool warning_by_nonexistence = true,const char *encoding = NULL);
|
||||
|
||||
#endif /* __xmlinterface_h__ */
|
||||
|
Reference in New Issue
Block a user