From 922581537802304b89df5ac27d7915adb16a2939 Mon Sep 17 00:00:00 2001 From: Lee Thomason Date: Sat, 24 Mar 2012 13:05:39 -0700 Subject: [PATCH] cleaned up the documentation --- tinyxml2.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tinyxml2.h b/tinyxml2.h index e96e471..6c5e6fe 100644 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -844,11 +844,16 @@ public: virtual bool Accept( XMLVisitor* visitor ) const; /** Given an attribute name, Attribute() returns the value - for the attribute of that name, or null if none exists. - - 'value' is normally null. However, if specified, the attribute - will only be returned if the 'name' and 'value' match. This - allow you to write code: + for the attribute of that name, or null if none + exists. For example: + + @verbatim + const char* value = ele->Attribute( "foo" ); + @endverbatim + + The 'value' parameter is normally null. However, if specified, + the attribute will only be returned if the 'name' and 'value' + match. This allow you to write code: @verbatim if ( ele->Attribute( "foo", "bar" ) ) callFooIsBar();