add test case
This commit is contained in:
@@ -1458,7 +1458,7 @@ public:
|
|||||||
|
|
||||||
XMLError QueryAttribute(const char* name, const char** value) const {
|
XMLError QueryAttribute(const char* name, const char** value) const {
|
||||||
return QueryStringAttribute(name, value);
|
return QueryStringAttribute(name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sets the named attribute to value.
|
/// Sets the named attribute to value.
|
||||||
void SetAttribute( const char* name, const char* value ) {
|
void SetAttribute( const char* name, const char* value ) {
|
||||||
|
|||||||
@@ -632,6 +632,10 @@ int main( int argc, const char ** argv )
|
|||||||
ele->SetAttribute( "int", 1 );
|
ele->SetAttribute( "int", 1 );
|
||||||
ele->SetAttribute( "double", -1.0 );
|
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" );
|
const char* cStr = ele->Attribute( "str" );
|
||||||
{
|
{
|
||||||
XMLError queryResult = ele->QueryIntAttribute( "int", &iVal );
|
XMLError queryResult = ele->QueryIntAttribute( "int", &iVal );
|
||||||
|
|||||||
Reference in New Issue
Block a user