Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

TiXmlAttribute Class Reference

An attribute is a name-value pair. More...

#include <tinyxml.h>

Class diagram for TiXmlAttribute:

TiXmlBase

List of all members.


Public Members

 TiXmlAttribute ()
Construct an empty attribute.

 TiXmlAttribute ( const std::string& _name, const std::string& _value )
Construct an attribute with a name and value.

const std::string& Name () const
Return the name of this attribute.

const std::string& Value () const
Return the value of this attribute.

void SetName ( const std::string& _name )
Set the name of this attribute.

void SetValue ( const std::string& _value )
Set the value.

TiXmlAttribute* Next ()
Get the next sibling attribute in the DOM. Returns null at end.

TiXmlAttribute* Previous ()
Get the previous sibling attribute in the DOM. Returns null at beginning.


Detailed Description

An attribute is a name-value pair.

Elements have an arbitrary number of attributes, each with a unique name.

@note The attributes are not TiXmlNodes, since they are not part of the tinyXML document object model. There are other suggested ways to look at this problem.

@note Attributes have a parent


The documentation for this class was generated from the following file:
Generated at Thu Jul 19 21:00:18 2001 for TinyXml by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999