Added the improved attribute query
diff --git a/tinyxml2.cpp b/tinyxml2.cpp
index 5e5b93d..96ec1bf 100644
--- a/tinyxml2.cpp
+++ b/tinyxml2.cpp
@@ -1074,6 +1074,17 @@
 }

 

 

+const char* XMLElement::Attribute( const char* name, const char* value ) const

+{ 

+	const XMLAttribute* a = FindAttribute( name ); 

+	if ( !a ) 

+		return 0; 

+	if ( !value || XMLUtil::StringEqual( a->Value(), value ))

+		return a->Value();

+	return 0;

+}

+

+

 const char* XMLElement::GetText() const

 {

 	if ( FirstChild() && FirstChild()->ToText() ) {