예제 #1
0
 static public void add_xml_nodes(XmlNode node, string xml)
 {
     if (node != null)
     {
         xml_doc doc = xml_doc.doc_from_xml("<root>" + xml + "</root>");
         foreach (XmlNode nd in doc.select_nodes("/root/*"))
         {
             node.AppendChild(node.OwnerDocument.ImportNode(nd, true));
         }
     }
 }
예제 #2
0
 public static xml_doc doc_from_xml(string xml)
 {
     xml_doc doc = new xml_doc(); doc.load_xml(xml); return(doc);
 }