Removes specified attribute from node. \param where Pointer to attribute to be removed.
| 1304 | //! Removes specified attribute from node. |
| 1305 | //! \param where Pointer to attribute to be removed. |
| 1306 | void remove_attribute(xml_attribute<Ch> *where) |
| 1307 | { |
| 1308 | assert(first_attribute() && where->parent() == this); |
| 1309 | if (where == m_first_attribute) |
| 1310 | remove_first_attribute(); |
| 1311 | else if (where == m_last_attribute) |
| 1312 | remove_last_attribute(); |
| 1313 | else |
| 1314 | { |
| 1315 | where->m_prev_attribute->m_next_attribute = where->m_next_attribute; |
| 1316 | where->m_next_attribute->m_prev_attribute = where->m_prev_attribute; |
| 1317 | where->m_parent = 0; |
| 1318 | } |
| 1319 | } |
| 1320 | |
| 1321 | //! Removes all attributes of node. |
| 1322 | void remove_all_attributes() |