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);
2891
new XmlTreeGen(SchemaFormat.Public).Save(_ds!,
_xmlw
);
2895
new XmlTreeGen(SchemaFormat.Public).Save(null, _dt!,
_xmlw
, _writeHierarchy);
2921
_xmlw
.WriteEndElement();
2922
_xmlw
.Flush();
2942
Debug.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));
3047
col.ConvertObjectToXml(value,
_xmlw
, null); // pass XmlRootAttribute as null, it also means: No XmlSerializer
3059
col.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));
3085
col.ConvertObjectToXml(value,
_xmlw
, null);
3090
_xmlw
.WriteEndElement();
3104
_xmlw
.WriteEndElement();