public void WriteXml(TextWriter textWriter) { var namespaces = new XmlSerializerNamespaces(new[] { new XmlQualifiedName("cobielite", "http://docs.buildingsmartalliance.org/nbims03/cobie/cobielite"), new XmlQualifiedName("core", "http://docs.buildingsmartalliance.org/nbims03/cobie/core"), new XmlQualifiedName("xsi", "http://www.w3.org/2001/XMLSchema-instance") }); var x = GetSerializer(); using (var xtw = new XbimCoBieLiteXmlWriter(textWriter)) { xtw.Formatting = System.Xml.Formatting.Indented; // Now serialize our object. x.Serialize(xtw, this, namespaces); } }
public void WriteXml(TextWriter textWriter) { var namespaces = new XmlSerializerNamespaces(new[] { new XmlQualifiedName("cobielite", "http://docs.buildingsmartalliance.org/nbims03/cobie/cobielite"), new XmlQualifiedName("core", "http://docs.buildingsmartalliance.org/nbims03/cobie/core"), new XmlQualifiedName("xsi", "http://www.w3.org/2001/XMLSchema-instance") }); var x = FacilityType.GetSerializer(); using (var xtw = new XbimCoBieLiteXmlWriter(textWriter)) { xtw.Formatting = System.Xml.Formatting.Indented; // Now serialize our object. x.Serialize(xtw, this, namespaces); } }