상속: Serializer, IDisposable
예제 #1
0
 /// <summary>
 /// Writes the outer XML content of this node.
 /// </summary>
 /// <param name="xmlWriter">The XML writer to write to.</param>
 public void WriteOuterXml(XmlWriter xmlWriter)
 {
     if (xmlWriter == null) throw new ArgumentNullException("xmlWriter");
     Check();
     using (XmlWriterSerializer serializer = new XmlWriterSerializer(xmlWriter, false))
     {
         ANode.serialize(serializer);
     }
 }
예제 #2
0
 /// <summary>
 /// Writes the inner XML content of this node.
 /// </summary>
 /// <param name="xmlWriter">The XML writer to write to.</param>
 public void WriteInnerXml(XmlWriter xmlWriter)
 {
     if (xmlWriter == null) throw new ArgumentNullException("xmlWriter");
     Check();
     using (XmlWriterSerializer serializer = new XmlWriterSerializer(xmlWriter, false))
     {
         foreach (ANode node in EnumerateANodes(ANode.children()))
         {
             node.serialize(serializer);
         }
     }
 }