XdmWriter.Serialize Method (XPathItem, XmlWriter)XdmWriter.Serialize Method (XPathItem, XmlWriter)XdmWriter::Serialize Method (XPathItem^, XmlWriter^)
- Namespace: XmlPrime.SerializationXmlPrime.SerializationXmlPrime.Serialization
- Assembly: XmlPrime (in XmlPrime.dll)
Syntax
Public Shared Sub Serialize( _ item As System.Xml.XPath.XPathItem, _ writer As System.Xml.XmlWriter _ )
public static void Serialize( System.Xml.XPath.XPathItem item, System.Xml.XmlWriter writer )
public: static void Serialize( System.Xml.XPath::XPathItem^ item, System.Xml::XmlWriter^ writer )
Parameters
- item
Type: System.Xml.XPath.XPathItemSystem.Xml.XPath.XPathItemSystem.Xml.XPath::XPathItem^
The item to serialize, or
null
a null reference (Nothing
in Visual Basic)nullptr
to serialize an empty document.- writer
Type: System.Xml.XmlWriterSystem.Xml.XmlWriterSystem.Xml::XmlWriter^
The writer to serialize to.
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException |
writer is null
a null reference (Nothing in Visual Basic)
nullptr .
|
XdmExceptionXdmExceptionXdmException | An error occurred during serialization. |
Remarks
If the WriteStateWriteStateWriteState property is ClosedClosedClosed or ErrorErrorError no serialization will be performed.