Пример #1
0
        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);
        }
Пример #2
0
 public static nano_node create_node(string xml)
 {
     nano_doc d = new nano_doc(xml); return(d.root);
 }