blob: 7f50531316330c8aa3d9f9998d92ba87efcb3d9a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef NEWSBOAT_RSSPP_XMLUTILITIES_H_
#define NEWSBOAT_RSSPP_XMLUTILITIES_H_
#include <libxml/tree.h>
#include <string>
namespace rsspp {
std::string get_content(xmlNode* node);
std::string get_xml_content(xmlNode* node, xmlDocPtr doc);
void cleanup_namespaces(xmlNodePtr node);
std::string get_prop(xmlNode* node, const std::string& prop,
const std::string& ns = "");
bool has_namespace(xmlNode* node, const char* ns_uri = nullptr);
bool node_is(xmlNode* node, const char* name, const char* ns_uri = nullptr);
} // namespace rsspp
#endif // NEWSBOAT_RSSPP_XMLUTILITIES_H_
|