| 780 | } |
| 781 | |
| 782 | inline void remove_attribute(xml_attribute_struct* attr, xml_node_struct* node) |
| 783 | { |
| 784 | if (attr->next_attribute) |
| 785 | attr->next_attribute->prev_attribute_c = attr->prev_attribute_c; |
| 786 | else |
| 787 | node->first_attribute->prev_attribute_c = attr->prev_attribute_c; |
| 788 | |
| 789 | if (attr->prev_attribute_c->next_attribute) |
| 790 | attr->prev_attribute_c->next_attribute = attr->next_attribute; |
| 791 | else |
| 792 | node->first_attribute = attr->next_attribute; |
| 793 | |
| 794 | attr->prev_attribute_c = 0; |
| 795 | attr->next_attribute = 0; |
| 796 | } |
| 797 | |
| 798 | PUGI__FN_NO_INLINE xml_node_struct* append_new_node(xml_node_struct* node, xml_allocator& alloc, xml_node_type type = node_element) |
| 799 | { |