| 281 | } |
| 282 | |
| 283 | Node Node::AddText( const std::string& str ) |
| 284 | { |
| 285 | assert( m_ptr != 0 ) ; |
| 286 | assert( IsCompatible( GetType(), text ) ) ; |
| 287 | |
| 288 | Impl *child = new Impl( "#text", text, str ) ; |
| 289 | m_ptr->Add( child->AddRef() ) ; |
| 290 | return Node( child ) ; |
| 291 | } |
| 292 | |
| 293 | void Node::AddAttribute( const std::string& name, const std::string& val ) |
| 294 | { |