cleaned up the documentation

This commit is contained in:
Lee Thomason 2012-03-24 13:05:39 -07:00
parent 8ba7f7d69b
commit 9225815378
1 changed files with 10 additions and 5 deletions

View File

@ -844,11 +844,16 @@ public:
virtual bool Accept( XMLVisitor* visitor ) const; virtual bool Accept( XMLVisitor* visitor ) const;
/** Given an attribute name, Attribute() returns the value /** Given an attribute name, Attribute() returns the value
for the attribute of that name, or null if none exists. for the attribute of that name, or null if none
exists. For example:
'value' is normally null. However, if specified, the attribute @verbatim
will only be returned if the 'name' and 'value' match. This const char* value = ele->Attribute( "foo" );
allow you to write code: @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 @verbatim
if ( ele->Attribute( "foo", "bar" ) ) callFooIsBar(); if ( ele->Attribute( "foo", "bar" ) ) callFooIsBar();