From 904ad04bea0ee798d5e059410faf45de65a4eb0f Mon Sep 17 00:00:00 2001 From: kb1sph Date: Mon, 6 Feb 2023 19:07:13 -0500 Subject: [PATCH] Added ChildElementCount Added ChildElementCount suggested by msteiger on sourceforge for original tinyxml. Modified for TinyXML-2. --- tinyxml2.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tinyxml2.h b/tinyxml2.h index b0c8b6c..66ca3b2 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -732,6 +732,12 @@ public: return 0; } + // ChildElementCount was originally suggested by msteiger on the sourceforge page for TinyXML and modified by KB1SPH for TinyXML-2. + + int ChildElementCount(const char *value) const; + + int ChildElementCount() const; + /** The meaning of 'value' changes for the specific type. @verbatim Document: empty (NULL is returned, not an empty string)