Lines Matching refs:XMLNode

66 XMLNode XMLDocument::GetRootElement(const char *required_name) {  in GetRootElement()
69 XMLNode root_node(xmlDocGetRootElement(m_document)); in GetRootElement()
79 return XMLNode(); in GetRootElement()
92 #pragma mark-- XMLNode
94 XMLNode::XMLNode() = default;
96 XMLNode::XMLNode(XMLNodeImpl node) : m_node(node) {} in XMLNode() function in XMLNode
98 XMLNode::~XMLNode() = default;
100 void XMLNode::Clear() { m_node = nullptr; } in Clear()
102 XMLNode XMLNode::GetParent() const { in GetParent()
105 return XMLNode(m_node->parent); in GetParent()
107 return XMLNode(); in GetParent()
109 return XMLNode(); in GetParent()
113 XMLNode XMLNode::GetSibling() const { in GetSibling()
116 return XMLNode(m_node->next); in GetSibling()
118 return XMLNode(); in GetSibling()
120 return XMLNode(); in GetSibling()
124 XMLNode XMLNode::GetChild() const { in GetChild()
128 return XMLNode(m_node->children); in GetChild()
130 return XMLNode(); in GetChild()
132 return XMLNode(); in GetChild()
136 llvm::StringRef XMLNode::GetAttributeValue(const char *name, in GetAttributeValue()
154 bool XMLNode::GetAttributeValueAsUnsigned(const char *name, uint64_t &value, in GetAttributeValueAsUnsigned()
166 void XMLNode::ForEachChildNode(NodeCallback const &callback) const { in ForEachChildNode()
173 void XMLNode::ForEachChildElement(NodeCallback const &callback) const { in ForEachChildElement()
175 XMLNode child = GetChild(); in ForEachChildElement()
181 void XMLNode::ForEachChildElementWithName(const char *name, in ForEachChildElementWithName()
184 XMLNode child = GetChild(); in ForEachChildElementWithName()
190 void XMLNode::ForEachAttribute(AttributeCallback const &callback) const { in ForEachAttribute()
213 void XMLNode::ForEachSiblingNode(NodeCallback const &callback) const { in ForEachSiblingNode()
219 if (!callback(XMLNode(node))) in ForEachSiblingNode()
226 void XMLNode::ForEachSiblingElement(NodeCallback const &callback) const { in ForEachSiblingElement()
236 if (!callback(XMLNode(node))) in ForEachSiblingElement()
243 void XMLNode::ForEachSiblingElementWithName( in ForEachSiblingElementWithName()
265 if (!callback(XMLNode(node))) in ForEachSiblingElementWithName()
272 llvm::StringRef XMLNode::GetName() const { in GetName()
282 bool XMLNode::GetElementText(std::string &text) const { in GetElementText()
303 bool XMLNode::GetElementTextAsUnsigned(uint64_t &value, uint64_t fail_value, in GetElementTextAsUnsigned()
318 bool XMLNode::GetElementTextAsFloat(double &value, double fail_value) const { in GetElementTextAsFloat()
334 bool XMLNode::NameIs(const char *name) const { in NameIs()
348 XMLNode XMLNode::FindFirstChildElementWithName(const char *name) const { in FindFirstChildElementWithName()
349 XMLNode result_node; in FindFirstChildElementWithName()
353 name, [&result_node](const XMLNode &node) -> bool { in FindFirstChildElementWithName()
363 bool XMLNode::IsValid() const { return m_node != nullptr; } in IsValid()
365 bool XMLNode::IsElement() const { in IsElement()
373 XMLNode XMLNode::GetElementForPath(const NamePath &path) { in GetElementForPath()
380 XMLNode node = FindFirstChildElementWithName(path[0].c_str()); in GetElementForPath()
389 return XMLNode(); in GetElementForPath()
409 XMLNode plist = m_xml_doc.GetRootElement("plist"); in ParseFile()
412 [this](const XMLNode &dict) -> bool { in ParseFile()
426 XMLNode value_node = GetValueNode(key); in GetValueAsString()
432 XMLNode ApplePropertyList::GetValueNode(const char *key) const { in GetValueNode()
433 XMLNode value_node; in GetValueNode()
438 "key", [key, &value_node](const XMLNode &key_node) -> bool { in GetValueNode()
455 bool ApplePropertyList::ExtractStringFromValueNode(const XMLNode &node, in ExtractStringFromValueNode()
478 StructuredData::ObjectSP CreatePlistValue(XMLNode node) { in CreatePlistValue()
483 node.ForEachChildElement([&array_sp](const XMLNode &node) -> bool { in CreatePlistValue()
489 XMLNode key_node; in CreatePlistValue()
493 [&key_node, &dict_sp](const XMLNode &node) -> bool { in CreatePlistValue()