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