Lines Matching refs:XMLDocument
18 #pragma mark-- XMLDocument
20 XMLDocument::XMLDocument() : m_document(nullptr) {} in XMLDocument() function in XMLDocument
22 XMLDocument::~XMLDocument() { Clear(); } in ~XMLDocument()
24 void XMLDocument::Clear() { in Clear()
34 bool XMLDocument::IsValid() const { return m_document != nullptr; } in IsValid()
36 void XMLDocument::ErrorCallback(void *ctx, const char *format, ...) { in ErrorCallback()
37 XMLDocument *document = (XMLDocument *)ctx; in ErrorCallback()
45 bool XMLDocument::ParseFile(const char *path) { in ParseFile()
48 xmlSetGenericErrorFunc((void *)this, XMLDocument::ErrorCallback); in ParseFile()
55 bool XMLDocument::ParseMemory(const char *xml, size_t xml_length, in ParseMemory()
59 xmlSetGenericErrorFunc((void *)this, XMLDocument::ErrorCallback); in ParseMemory()
66 XMLNode XMLDocument::GetRootElement(const char *required_name) { in GetRootElement()
82 llvm::StringRef XMLDocument::GetErrors() const { return m_errors.GetString(); } in GetErrors()
84 bool XMLDocument::XMLEnabled() { in XMLEnabled()