Added the improved attribute query

This commit is contained in:
Lee Thomason
2012-03-24 13:04:04 -07:00
parent c50b6b4e7e
commit 8ba7f7d69b
3 changed files with 28 additions and 1 deletions

View File

@@ -319,6 +319,7 @@ int main( int /*argc*/, const char ** /*argv*/ )
ele->QueryIntAttribute( "int", &iVal );
ele->QueryDoubleAttribute( "double", &dVal );
XMLTest( "Attribute match test", ele->Attribute( "str", "strValue" ), "strValue" );
XMLTest( "Attribute round trip. c-string.", "strValue", cStr );
XMLTest( "Attribute round trip. int.", 1, iVal );
XMLTest( "Attribute round trip. double.", -1, (int)dVal );