public void readXML(string fn) { Entity.xml = new XMLDoc(fn, "head"); Entity.xml.insert(); string n = "Sketch"; foreach (var el in Entity.xml.find(n)) { Entity.xml.El = el; SketchInv sk = new SketchInv(); sk.add(); } }
public void createXML() { string p = u.pathDoc(Entity.doc as Document), name = ps.Name + ".xml"; Entity.xml = new XMLDoc(p + "\\" + name, "head"); SketchInv sk = new SketchInv(ps); sk.get(); if (Entity.closed) { XElement el = Entity.xml.findLast("Sketch"); if (el != null) { el.SetAttributeValue("Constr", "c"); } } Entity.xml.save(); }