2 writes to _xmlw
System.Data.Common (2)
System\Data\xmlsaver.cs (2)
2807_xmlw = DataTextWriter.CreateWriter(xw); 2851_xmlw = DataTextWriter.CreateWriter(xw);
36 references to _xmlw
System.Data.Common (36)
System\Data\xmlsaver.cs (36)
2814_xmlw.WriteStartElement(prefix, Keywords.DOCUMENTELEMENT, (_dt!.Namespace == null) ? "" : _dt.Namespace); 2816_xmlw.WriteStartElement(prefix, XmlConvert.EncodeLocalName(_ds.DataSetName), _ds.Namespace); 2841_xmlw.WriteEndElement(); 2842_xmlw.Flush(); 2868_xmlw.WriteStartElement(prefix, Keywords.DOCUMENTELEMENT, _dt!.Namespace); 2873_xmlw.WriteStartElement(prefix, Keywords.DOCUMENTELEMENT, _ds.Namespace); 2875_xmlw.WriteStartElement(prefix, XmlConvert.EncodeLocalName(_ds.DataSetName), _ds.Namespace); 2882_xmlw.WriteAttributeString(Keywords.XMLNS, Keywords.XSI, Keywords.XSD_XMLNS_NS, Keywords.XSINS); 2891new XmlTreeGen(SchemaFormat.Public).Save(_ds!, _xmlw); 2895new XmlTreeGen(SchemaFormat.Public).Save(null, _dt!, _xmlw, _writeHierarchy); 2921_xmlw.WriteEndElement(); 2922_xmlw.Flush(); 2942Debug.Assert(_xmlw != null); 2947_xmlw.WriteStartElement(prefix, encodedTableName, row.Table.Namespace); 2951_xmlw.WriteAttributeString(Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, row.Table.TableName + row.rowID.ToString(CultureInfo.InvariantCulture)); 2953_xmlw.WriteAttributeString(Keywords.MSD, Keywords.ROWORDER, Keywords.MSDNS, _rowsOrder![row]!.ToString()); 2957_xmlw.WriteAttributeString(Keywords.DFF, Keywords.HASCHANGES, Keywords.DFFNS, Keywords.INSERTED); 2961_xmlw.WriteAttributeString(Keywords.DFF, Keywords.HASCHANGES, Keywords.DFFNS, Keywords.MODIFIED); 2966_xmlw.WriteAttributeString(Keywords.DFF, Keywords.HASERRORS, Keywords.DFFNS, Keywords.TRUE); 2981_xmlw.WriteAttributeString(colPrefix, col.EncodedColumnName, col.Namespace, col.ConvertObjectToXml(value)); 2995_xmlw.WriteAttributeString(Keywords.MSD, "hidden" + col.EncodedColumnName, Keywords.MSDNS, col.ConvertObjectToXml(value)); 3009_xmlw.WriteAttributeString(Keywords.XSI, Keywords.XSI_NIL, Keywords.XSINS, Keywords.TRUE); 3019_xmlw.WriteStartElement(colPrefix, col.EncodedColumnName, col.Namespace); 3031_xmlw.WriteAttributeString(Keywords.XML, Keywords.SPACE, Keywords.XML_XMLNS, Keywords.PRESERVE); 3034_xmlw.WriteString(col.ConvertObjectToXml(value)); 3043_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, DataStorage.GetQualifiedName(valuesType)); 3047col.ConvertObjectToXml(value, _xmlw, null); // pass XmlRootAttribute as null, it also means: No XmlSerializer 3059col.ConvertObjectToXml(value, _xmlw, xmlAttrib); 3067_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, valuesType.FullName); 3071_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, Keywords.TYPEINSTANCE); 3076_xmlw.WriteAttributeString(Keywords.XSI, Keywords.TYPE, Keywords.XSINS, xsdTypeName); 3077_xmlw.WriteAttributeString(Keywords.XSD_PREFIX, Keywords.XMLNS, Keywords.XSDNS, xsdTypeName); 3081_xmlw.WriteString(col.ConvertObjectToXml(value)); 3085col.ConvertObjectToXml(value, _xmlw, null); 3090_xmlw.WriteEndElement(); 3104_xmlw.WriteEndElement();