Example #1
0
        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));
        }
Example #2
0
 public xml_node add_node(string name)
 {
     xml_node nd = root_node; return(nd == null ? null : nd.add_node(name));
 }
Example #3
0
 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));
 }
Example #4
0
 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)));
 }
Example #5
0
 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)));
 }