Lines Matching refs:root
59 // Returns child nodes of |root| with name |name| in namespace |xml_namespace|.
60 static std::vector<xmlNode*> GetChildren(xmlNode* root, xmlNs* xml_namespace,
63 for (xmlNode* child = root->children; child != NULL; child = child->next) {
236 xmlNode *root = xmlDocGetRootElement(document.get());
237 if (!root) {
238 ParseError("Missing root node");
243 xmlNs* gupdate_ns = GetNamespace(root, kExpectedGupdateXmlns);
249 if (!TagNameEquals(root, "gupdate", gupdate_ns)) {
255 if (GetAttribute(root, "protocol") != kExpectedGupdateProtocol) {
262 std::vector<xmlNode*> daystarts = GetChildren(root, gupdate_ns, "daystart");
273 std::vector<xmlNode*> apps = GetChildren(root, gupdate_ns, "app");