| 4167 | } |
| 4168 | |
| 4169 | PUGI__FN xml_attribute xml_node::append_attribute(const char_t* name_) |
| 4170 | { |
| 4171 | if (type() != node_element && type() != node_declaration) return xml_attribute(); |
| 4172 | |
| 4173 | xml_attribute a(impl::append_attribute_ll(_root, impl::get_allocator(_root))); |
| 4174 | a.set_name(name_); |
| 4175 | |
| 4176 | return a; |
| 4177 | } |
| 4178 | |
| 4179 | PUGI__FN xml_attribute xml_node::prepend_attribute(const char_t* name_) |
| 4180 | { |