| 99 | //======================= |
| 100 | |
| 101 | void XML_Node::SetAttrValue ( XMP_StringPtr attrName, XMP_StringPtr attrValue ) |
| 102 | { |
| 103 | |
| 104 | for ( size_t i = 0, aLim = this->attrs.size(); i < aLim; ++i ) { |
| 105 | XML_Node * attrPtr = this->attrs[i]; |
| 106 | if ( ! attrPtr->ns.empty() ) continue; // This form of SetAttrValue is for attrs in no namespace. |
| 107 | if ( attrPtr->name == attrName ) { |
| 108 | attrPtr->value = attrValue; |
| 109 | return; |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | } // XML_Node::SetAttrValue |
| 114 | |
| 115 | // ================================================================================================= |
| 116 | // XML_Node::GetLeafContentValue |