2 writes to _xmlw
System.Data.Common (2)
System\Data\xmlsaver.cs (2)
2791_xmlw = DataTextWriter.CreateWriter(xw); 2834_xmlw = DataTextWriter.CreateWriter(xw);
36 references to _xmlw
System.Data.Common (36)
System\Data\xmlsaver.cs (36)
2798_xmlw.WriteStartElement(prefix, Keywords.DOCUMENTELEMENT, (_dt!.Namespace == null) ? "" : _dt.Namespace); 2800_xmlw.WriteStartElement(prefix, XmlConvert.EncodeLocalName(_ds.DataSetName), _ds.Namespace); 2825_xmlw.WriteEndElement(); 2826_xmlw.Flush(); 2851_xmlw.WriteStartElement(prefix, Keywords.DOCUMENTELEMENT, _dt!.Namespace); 2856_xmlw.WriteStartElement(prefix, Keywords.DOCUMENTELEMENT, _ds.Namespace); 2858_xmlw.WriteStartElement(prefix, XmlConvert.EncodeLocalName(_ds.DataSetName), _ds.Namespace); 2865_xmlw.WriteAttributeString(Keywords.XMLNS, Keywords.XSI, Keywords.XSD_XMLNS_NS, Keywords.XSINS); 2874new XmlTreeGen(SchemaFormat.Public).Save(_ds!, _xmlw); 2878new XmlTreeGen(SchemaFormat.Public).Save(null, _dt!, _xmlw, _writeHierarchy); 2904_xmlw.WriteEndElement(); 2905_xmlw.Flush(); 2924Debug.Assert(_xmlw != null); 2929_xmlw.WriteStartElement(prefix, encodedTableName, row.Table.Namespace); 2933_xmlw.WriteAttributeString(Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, row.Table.TableName + row.rowID.ToString(CultureInfo.InvariantCulture)); 2935_xmlw.WriteAttributeString(Keywords.MSD, Keywords.ROWORDER, Keywords.MSDNS, _rowsOrder![row]!.ToString()); 2939_xmlw.WriteAttributeString(Keywords.DFF, Keywords.HASCHANGES, Keywords.DFFNS, Keywords.INSERTED); 2943_xmlw.WriteAttributeString(Keywords.DFF, Keywords.HASCHANGES, Keywords.DFFNS, Keywords.MODIFIED); 2948_xmlw.WriteAttributeString(Keywords.DFF, Keywords.HASERRORS, Keywords.DFFNS, Keywords.TRUE); 2963_xmlw.WriteAttributeString(colPrefix, col.EncodedColumnName, col.Namespace, col.ConvertObjectToXml(value)); 2977_xmlw.WriteAttributeString(Keywords.MSD, "hidden" + col.EncodedColumnName, Keywords.MSDNS, col.ConvertObjectToXml(value)); 2991_xmlw.WriteAttributeString(Keywords.XSI, Keywords.XSI_NIL, Keywords.XSINS, Keywords.TRUE); 3001_xmlw.WriteStartElement(colPrefix, col.EncodedColumnName, col.Namespace); 3013_xmlw.WriteAttributeString(Keywords.XML, Keywords.SPACE, Keywords.XML_XMLNS, Keywords.PRESERVE); 3016_xmlw.WriteString(col.ConvertObjectToXml(value)); 3025_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, DataStorage.GetQualifiedName(valuesType)); 3029col.ConvertObjectToXml(value, _xmlw, null); // pass XmlRootAttribute as null, it also means: No XmlSerializer 3041col.ConvertObjectToXml(value, _xmlw, xmlAttrib); 3049_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, valuesType.FullName); 3053_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, Keywords.TYPEINSTANCE); 3058_xmlw.WriteAttributeString(Keywords.XSI, Keywords.TYPE, Keywords.XSINS, xsdTypeName); 3059_xmlw.WriteAttributeString(Keywords.XSD_PREFIX, Keywords.XMLNS, Keywords.XSDNS, xsdTypeName); 3063_xmlw.WriteString(col.ConvertObjectToXml(value)); 3067col.ConvertObjectToXml(value, _xmlw, null); 3072_xmlw.WriteEndElement(); 3086_xmlw.WriteEndElement();