示例#1
0
文件: xml.hpp 项目: oeuftete/wx-xword
inline node
Parser::RequireChild(node n, const char * name)
{
    node child = n.child(name);
    if (! child)
        throw LoadError(std::string("Missing required element: \"") + name + "\"");
    return Visit(child);
}
示例#2
0
文件: xml.hpp 项目: oeuftete/wx-xword
 // Child text
 inline string_t GetText(node n, const char * name)
     { return GetText(n.child(name)); }
示例#3
0
文件: xml.hpp 项目: oeuftete/wx-xword
 // Child InnerXML
 string_t GetInnerXML(node n, const char * name)
     { return GetInnerXML(n.child(name)); }
示例#4
0
文件: xml.hpp 项目: oeuftete/wx-xword
 // Visit this child but don't require it
 node GetChild(node n, const char * name) { return Visit(n.child(name)); }