XdmWriter.Serialize Method (XmlReader, XmlWriter)XdmWriter.Serialize Method (XmlReader, XmlWriter)XdmWriter::Serialize Method (XmlReader^, XmlWriter^)
- Namespace: XmlPrime.SerializationXmlPrime.SerializationXmlPrime.Serialization
- Assembly: XmlPrime (in XmlPrime.dll)
Syntax
Public Shared Sub Serialize( _ reader As System.Xml.XmlReader, _ writer As System.Xml.XmlWriter _ )
public static void Serialize( System.Xml.XmlReader reader, System.Xml.XmlWriter writer )
public: static void Serialize( System.Xml::XmlReader^ reader, System.Xml::XmlWriter^ writer )
Parameters
- reader
Type: System.Xml.XmlReaderSystem.Xml.XmlReaderSystem.Xml::XmlReader^
The document to serialize.
- writer
Type: System.Xml.XmlWriterSystem.Xml.XmlWriterSystem.Xml::XmlWriter^
The writer to serialize to.
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException |
reader or writer is null
a null reference (Nothing in Visual Basic)
nullptr .
|
XdmExceptionXdmExceptionXdmException | An error occurred during serialization. |
Remarks
If the ConformanceLevelConformanceLevelConformanceLevel property of the has value DocumentDocumentDocument, then only the subtree on which reader is positioned and any following comment, processing instuctions and whitespace nodes will be serialized. Otherwise, the subtree on which reader is positioned together with any siblings. will be serialized.
If the WriteStateWriteStateWriteState property is ClosedClosedClosed or ErrorErrorError no serialization will be performed.