diff options
Diffstat (limited to 'src/utils/xml.cpp')
-rw-r--r-- | src/utils/xml.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils/xml.cpp b/src/utils/xml.cpp index d0f51230..2fb9d66b 100644 --- a/src/utils/xml.cpp +++ b/src/utils/xml.cpp @@ -92,6 +92,11 @@ namespace XML return mDoc ? xmlDocGetRootElement(mDoc) : nullptr; } + bool hasProperty(xmlNodePtr node, const char *name) + { + return xmlHasProp(node, BAD_CAST name) != nullptr; + } + int getProperty(xmlNodePtr node, const char* name, int def) { int &ret = def; |