Lines Matching refs:XMLNode
65 XMLNode XMLDocument::GetRootElement(const char *required_name) { in GetRootElement()
68 XMLNode root_node(xmlDocGetRootElement(m_document)); in GetRootElement()
78 return XMLNode(); in GetRootElement()
91 #pragma mark-- XMLNode
93 XMLNode::XMLNode() = default;
95 XMLNode::XMLNode(XMLNodeImpl node) : m_node(node) {} in XMLNode() function in XMLNode
97 XMLNode::~XMLNode() = default;
99 void XMLNode::Clear() { m_node = nullptr; } in Clear()
101 XMLNode XMLNode::GetParent() const { in GetParent()
104 return XMLNode(m_node->parent); in GetParent()
106 return XMLNode(); in GetParent()
108 return XMLNode(); in GetParent()
112 XMLNode XMLNode::GetSibling() const { in GetSibling()
115 return XMLNode(m_node->next); in GetSibling()
117 return XMLNode(); in GetSibling()
119 return XMLNode(); in GetSibling()
123 XMLNode XMLNode::GetChild() const { in GetChild()
127 return XMLNode(m_node->children); in GetChild()
129 return XMLNode(); in GetChild()
131 return XMLNode(); in GetChild()
135 std::string XMLNode::GetAttributeValue(const char *name, in GetAttributeValue()
156 bool XMLNode::GetAttributeValueAsUnsigned(const char *name, uint64_t &value, in GetAttributeValueAsUnsigned()
162 void XMLNode::ForEachChildNode(NodeCallback const &callback) const { in ForEachChildNode()
169 void XMLNode::ForEachChildElement(NodeCallback const &callback) const { in ForEachChildElement()
171 XMLNode child = GetChild(); in ForEachChildElement()
177 void XMLNode::ForEachChildElementWithName(const char *name, in ForEachChildElementWithName()
180 XMLNode child = GetChild(); in ForEachChildElementWithName()
186 void XMLNode::ForEachAttribute(AttributeCallback const &callback) const { in ForEachAttribute()
209 void XMLNode::ForEachSiblingNode(NodeCallback const &callback) const { in ForEachSiblingNode()
215 if (!callback(XMLNode(node))) in ForEachSiblingNode()
222 void XMLNode::ForEachSiblingElement(NodeCallback const &callback) const { in ForEachSiblingElement()
232 if (!callback(XMLNode(node))) in ForEachSiblingElement()
239 void XMLNode::ForEachSiblingElementWithName( in ForEachSiblingElementWithName()
261 if (!callback(XMLNode(node))) in ForEachSiblingElementWithName()
268 llvm::StringRef XMLNode::GetName() const { in GetName()
278 bool XMLNode::GetElementText(std::string &text) const { in GetElementText()
299 bool XMLNode::GetElementTextAsUnsigned(uint64_t &value, uint64_t fail_value, in GetElementTextAsUnsigned()
307 bool XMLNode::GetElementTextAsFloat(double &value, double fail_value) const { in GetElementTextAsFloat()
314 bool XMLNode::NameIs(const char *name) const { in NameIs()
328 XMLNode XMLNode::FindFirstChildElementWithName(const char *name) const { in FindFirstChildElementWithName()
329 XMLNode result_node; in FindFirstChildElementWithName()
333 name, [&result_node](const XMLNode &node) -> bool { in FindFirstChildElementWithName()
343 bool XMLNode::IsValid() const { return m_node != nullptr; } in IsValid()
345 bool XMLNode::IsElement() const { in IsElement()
353 XMLNode XMLNode::GetElementForPath(const NamePath &path) { in GetElementForPath()
360 XMLNode node = FindFirstChildElementWithName(path[0].c_str()); in GetElementForPath()
369 return XMLNode(); in GetElementForPath()
389 XMLNode plist = m_xml_doc.GetRootElement("plist"); in ParseFile()
392 [this](const XMLNode &dict) -> bool { in ParseFile()
406 XMLNode value_node = GetValueNode(key); in GetValueAsString()
412 XMLNode ApplePropertyList::GetValueNode(const char *key) const { in GetValueNode()
413 XMLNode value_node; in GetValueNode()
418 "key", [key, &value_node](const XMLNode &key_node) -> bool { in GetValueNode()
435 bool ApplePropertyList::ExtractStringFromValueNode(const XMLNode &node, in ExtractStringFromValueNode()
456 static StructuredData::ObjectSP CreatePlistValue(XMLNode node) { in CreatePlistValue()
461 node.ForEachChildElement([&array_sp](const XMLNode &node) -> bool { in CreatePlistValue()
467 XMLNode key_node; in CreatePlistValue()
471 [&key_node, &dict_sp](const XMLNode &node) -> bool { in CreatePlistValue()