public xml_node add_node(string xpath, string name, string text = "") { xml_node nd = node(xpath); if (nd != null && !string.IsNullOrEmpty(text)) { nd.text = text; } return(nd == null ? null : nd.add_node(name)); }
public xml_node add_node(string name) { xml_node nd = root_node; return(nd == null ? null : nd.add_node(name)); }
public xml_node add_node(string xpath, xml_node node_add) { xml_node nd = node(xpath); return(nd == null ? null : nd.add_node(node_add)); }
public xml_node add_before(string xpath, xml_node node_add, string xpath_before) { xml_node nd = node(xpath); return(nd == null ? null : nd.add_node(node_add, null, node(xpath_before))); }
public xml_node add_after(string xpath, xml_node node_add, string xpath_after) { xml_node nd = node(xpath); return(nd == null ? null : nd.add_node(node_add, node(xpath_after))); }