/*
WARNING: This header should never be directly included. Include XML.h instead.

Author:		Chris Kaynor (chris@kaynor.net)
Edited By:		

Description:		Provides attribute information for an XML element.
			
Usage:		Access the name of the attribute with the name property.
			Access the value of the attribute with the value property.
			
Requirements:	string as defined in the standard template library.
			
Last Edited:	June 24th, 2008
*/
/*
Copyright 2008 Chris Kaynor

This file is part of kLibrary.

kLibrary is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of
the License, or(at your option) any later version.

kLibrary is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License.
*/

#ifndef KLIBRARY_XML_ATTRIBUTE_H
#define KLIBRARY_XML_ATTRIBUTE_H

#include <string>

namespace kLibrary
{
	namespace XML
	{
		class Attribute
		{
		public:
			/*
			The name of the attribute.
			*/
			std::string name;
			
			/*
			The value of the attribute.
			If the XML is not well-formed and was missing
			the equals, this will be the same as the name as
			per well-formed XML guide-lines.
			*/
			std::string value;
		};
	}
}

#endif //KLIBRARY_XML_ATTRIBUTE_H