public void Write(Stream stream) { XmlCADDatabase xmlFilerImpl = new XmlCADDatabase(); // xmlFilerImpl.NewSubNodeAndInsert("Database"); { // block table xmlFilerImpl.NewSubNodeAndInsert(blockTable.ClassName); blockTable.XmlOut(xmlFilerImpl); xmlFilerImpl.Pop(); // Layer table xmlFilerImpl.NewSubNodeAndInsert(layerTable.ClassName); layerTable.XmlOut(xmlFilerImpl); xmlFilerImpl.Pop(); } xmlFilerImpl.Pop(); xmlFilerImpl.Save(stream); }