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