22 #include "NVPtype.hpp"
24 namespace FotoSHOCKcore {
32 xmlAddChild(parent.m_node, m_node);
33 xmlAddChild(m_node, nvp.m_content);
37 XmlNode(
const xmlNodePtr parent,
const NVPtype<T>& nvp) : m_node(xmlNewNode(NULL, nvp.m_name)) {
38 xmlAddChild(parent, m_node);
39 xmlAddChild(m_node, nvp.m_content);
43 explicit XmlNode(
const xmlNodePtr node) : m_node(node)
49 xmlNewProp(m_node, nvp.m_name, nvp.m_content->content);
52 xmlNodePtr node()
const {
56 const xmlNodePtr m_node;