Merge pull request #136 from FreakC/master

Issue #134
This commit is contained in:
Lee Thomason 2013-10-22 11:36:29 -07:00
commit ab42b16bac
2 changed files with 20 additions and 9 deletions

View File

@ -595,6 +595,10 @@ XMLNode::~XMLNode()
}
}
const char* XMLNode::Value() const
{
return _value.GetStr();
}
void XMLNode::SetValue( const char* str, bool staticMem )
{
@ -1040,6 +1044,17 @@ bool XMLUnknown::Accept( XMLVisitor* visitor ) const
}
// --------- XMLAttribute ---------- //
const char* XMLAttribute::Name() const
{
return _name.GetStr();
}
const char* XMLAttribute::Value() const
{
return _value.GetStr();
}
char* XMLAttribute::ParseDeep( char* p, bool processEntities )
{
// Parse using the name rules: bug fix, was using ParseText before

View File

@ -643,9 +643,7 @@ public:
Text: the text string
@endverbatim
*/
const char* Value() const {
return _value.GetStr();
}
const char* Value() const;
/** Set the Value of an XML node.
@sa Value()
@ -1014,13 +1012,11 @@ class TINYXML2_LIB XMLAttribute
friend class XMLElement;
public:
/// The name of the attribute.
const char* Name() const {
return _name.GetStr();
}
const char* Name() const;
/// The value of the attribute.
const char* Value() const {
return _value.GetStr();
}
const char* Value() const;
/// The next attribute in the list.
const XMLAttribute* Next() const {
return _next;