Exemple #1
0
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);
}
Exemple #2
0
 // Child text
 inline string_t GetText(node n, const char * name)
     { return GetText(n.child(name)); }
Exemple #3
0
 // Child InnerXML
 string_t GetInnerXML(node n, const char * name)
     { return GetInnerXML(n.child(name)); }
Exemple #4
0
 // Visit this child but don't require it
 node GetChild(node n, const char * name) { return Visit(n.child(name)); }