2 writes to _xmlWriter
System.IO.Packaging (2)
System\IO\Packaging\PartBasedPackageProperties.cs (2)
687
_xmlWriter
= XmlWriter.Create(writerStream, new XmlWriterSettings { Encoding = System.Text.Encoding.UTF8 });
824
_xmlWriter
= null;
19 references to _xmlWriter
System.IO.Packaging (19)
System\IO\Packaging\PartBasedPackageProperties.cs (19)
324
Debug.Assert(
_xmlWriter
== null);
680
if (
_xmlWriter
!= null)
739
Debug.Assert(
_xmlWriter
!= null);
741
_xmlWriter
.WriteStartDocument();
744
_xmlWriter
.WriteStartElement(PackageXmlStringTable.GetXmlString(PackageXmlEnum.CoreProperties), // local name
748
_xmlWriter
.WriteAttributeString(PackageXmlStringTable.GetXmlString(PackageXmlEnum.XmlNamespacePrefix),
754
_xmlWriter
.WriteAttributeString(PackageXmlStringTable.GetXmlString(PackageXmlEnum.XmlNamespacePrefix),
759
_xmlWriter
.WriteAttributeString(PackageXmlStringTable.GetXmlString(PackageXmlEnum.XmlNamespacePrefix),
768
Debug.Assert(
_xmlWriter
!= null);
777
_xmlWriter
.WriteStartElement(PackageXmlStringTable.GetXmlString(entry.Key),
785
_xmlWriter
.WriteStartAttribute(PackageXmlStringTable.GetXmlString(PackageXmlEnum.Type),
789
_xmlWriter
.WriteQualifiedName(W3cdtf,
792
_xmlWriter
.WriteEndAttribute();
797
_xmlWriter
.WriteString(XmlConvert.ToString(((Nullable<DateTime>)entry.Value).Value.ToUniversalTime(), "yyyy-MM-ddTHH:mm:ss.fffffffZ"));
802
_xmlWriter
.WriteString(entry.Value.ToString());
805
_xmlWriter
.WriteEndElement();
815
Debug.Assert(
_xmlWriter
!= null);
818
_xmlWriter
.WriteEndElement();
821
_xmlWriter
.Dispose();