public nano_node add_xml(string xml) { nano_doc doc = new nano_doc(string.Format("<root>{0}</root>", xml)); nano_node fn = null; foreach (nano_node nd in doc.root.nodes) { add(nd); if (fn == null) { fn = nd; } } return(fn); }
public static nano_node create_node(string xml) { nano_doc d = new nano_doc(xml); return(d.root); }