mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 06:35:08 -04:00
FeedReader:
- Changed compare of node names to case insensitive. More feeds should be supported now. - added ATOM format git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6056 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
35cc460e71
commit
c44d10a6a1
4 changed files with 120 additions and 29 deletions
|
@ -33,6 +33,9 @@ public:
|
|||
XMLWrapper();
|
||||
~XMLWrapper();
|
||||
|
||||
// find better place
|
||||
static void trimString(std::string &string);
|
||||
|
||||
XMLWrapper &operator=(const XMLWrapper &xml);
|
||||
|
||||
void cleanup();
|
||||
|
@ -48,9 +51,11 @@ public:
|
|||
xmlNodePtr findNode(xmlNodePtr node, const char *name, bool children = false);
|
||||
bool getChildText(xmlNodePtr node, const char *childName, std::string &text);
|
||||
|
||||
bool getContent(xmlNodePtr node, std::string &content);
|
||||
bool getContent(xmlNodePtr node, std::string &content, bool trim);
|
||||
bool setContent(xmlNodePtr node, const char *content);
|
||||
|
||||
bool nodeDump(xmlNodePtr node, std::string &content, bool trim);
|
||||
|
||||
std::string getAttr(xmlNodePtr node, xmlAttrPtr attr);
|
||||
std::string getAttr(xmlNodePtr node, const char *name);
|
||||
bool setAttr(xmlNodePtr node, const char *name, const char *value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue