commit | 4637965335196754e0dd7398cf11d73a80b9dc33 | [log] [tgz] |
---|---|---|
author | Lee Thomason <leethomason@gmail.com> | Thu Jul 02 15:23:00 2020 -0700 |
committer | Lee Thomason <leethomason@gmail.com> | Thu Jul 02 15:23:00 2020 -0700 |
tree | 458caa70ffbd034912d907a0acffa5bf1016ef04 | |
parent | d34d0ef5e0c56e2c933ec3912244a9e22e7b566b [diff] [blame] |
add test case
diff --git a/xmltest.cpp b/xmltest.cpp index 77cd6d7..4937dcb 100755 --- a/xmltest.cpp +++ b/xmltest.cpp
@@ -632,6 +632,10 @@ ele->SetAttribute( "int", 1 ); ele->SetAttribute( "double", -1.0 ); + const char* answer = 0; + ele->QueryAttribute("str", &answer); + XMLTest("Query char attribute", "strValue", answer); + const char* cStr = ele->Attribute( "str" ); { XMLError queryResult = ele->QueryIntAttribute( "int", &iVal );