add better accessors for attributes

This commit is contained in:
Glenn Maynard
2004-02-22 05:12:23 +00:00
parent 721f29c458
commit 0188f51f4e
2 changed files with 23 additions and 0 deletions
+14
View File
@@ -650,6 +650,20 @@ CString _tagXMLNode::GetXML( LPDISP_OPT opt /*= &optDefault*/ )
// Coder Date Desc
// bro 2002-10-29
//========================================================
const LPXAttr _tagXMLNode::GetAttr( LPCTSTR attrname ) const
{
for( unsigned i = 0 ; i < attrs.size(); i++ )
{
LPXAttr attr = attrs[i];
if( attr )
{
if( attr->name == attrname )
return attr;
}
}
return NULL;
}
LPXAttr _tagXMLNode::GetAttr( LPCTSTR attrname )
{
for( unsigned i = 0 ; i < attrs.size(); i++ )