WS++  v0.5.0-1152
Workflow/Spaces - C++ Library
XmlHelper.hpp File Reference

Several helper functions to deal with libxml2. More...

#include "WS.hpp"
Include dependency graph for XmlHelper.hpp:
This graph shows which files directly or indirectly include this file:

Namespaces

 fc
 FileCatalyst namespace.
 

Typedefs

typedef std::list< xmlNode * > fc::LXmlNodes
 Ordered list of libxml2 XML nodes. More...
 

Functions

StrMap fc::getNodeAttributes (xmlNode *node)
 Libxml2 helper function to get a map of all attribute names and values for the given node. More...
 
xmlNode * fc::findAnyNodeWithName (xmlNode *node, const std::string &name)
 Libxml2 helper function to look through both siblings and children to find and return the first node with this name. More...
 
xmlNode * fc::findAnyNodeWithName (xmlDoc *doc, const std::string &name)
 Libxml2 helper function to look through both siblings and children to find and return the first node with this name. More...
 
xmlNode * fc::findImmediateChildWithName (xmlNode *node, const std::string &name)
 Libxml2 helper function to look only at immediate children nodes to find and return the first one with this name. More...
 
xmlNode * fc::findImmediateChildWithName (xmlDoc *doc, const std::string &name)
 Libxml2 helper function to look only at immediate children nodes to find and return the first one with this name. More...
 
StrMap fc::findAnyNodeAndGetAttribs (xmlNode *node, const std::string &name)
 Combination of findAnyNodeWithName() and getNodeAttributes() in one function call. More...
 
StrMap fc::findAnyNodeAndGetAttribs (xmlDoc *doc, const std::string &name)
 Combination of findAnyNodeWithName() and getNodeAttributes() in one function call. More...
 
LXmlNodes fc::findAllSiblingsWithName (xmlNode *node, const std::string &name)
 Libxml2 helper function to get a list of all sibling nodes with the given name. More...
 
LXmlNodes fc::findAllSiblingsWithName (xmlDoc *doc, const std::string &name)
 Libxml2 helper function to get a list of all sibling nodes with the given name. More...
 

Detailed Description

Several helper functions to deal with libxml2.