XDTOSerializer.WriteXML
Syntax variant: Write without name
WriteXML(<XMLWriter>, <Value>, <TypeAssignment>, <Form>)
Type:
DOMNodeWriter,
FastInfosetWriter,
XMLWriter.
Object through which XML is written.
XML value being written. Parameter type is determined by a population of types that XML-serialization was defined for.
<TypeAssignment> (optional)
Type:
XMLTypeAssignment.
Defines the need to assign XML item type.
Default value:
Implicit.
Type:
XMLForm.
A form used to write a data item in XML.
Description of method variant:
Writes values in XML format without indicating item name. A value type will be used as the item name.
Syntax variant: Write with full name
WriteXML(<XMLWriter>, <Value>, <FullName>, <TypeAssignment>, <Form>)
Type:
DOMNodeWriter,
FastInfosetWriter,
XMLWriter.
Object through which XML is written.
XML value being written. Parameter type is determined by a population of types that XML-serialization was defined for.
Type:
String.
Full name of XML item the value is to be written to.
<TypeAssignment> (optional)
Type:
XMLTypeAssignment.
Defines the need to assign XML item type.
Default value:
Implicit.
Type:
XMLForm.
A form used to write a data item in XML.
Description of method variant:
Writes values in XML format with full element name.
Syntax variant: Write with local name and namespace
WriteXML(<XMLWriter>, <Value>, <LocalName>, <NamespaceURI>, <TypeAssignment>, <Form>)
Type:
DOMNodeWriter,
FastInfosetWriter,
XMLWriter.
Object through which XML is written.
XML value being written. Parameter type is determined by a population of types that XML-serialization was defined for.
Type:
String.
local name of the XML item to which a value is to be written to.
<NamespaceURI> (required)
Type:
String.
URI to which the namespace specified as
LocalName belongs.
<TypeAssignment> (optional)
Type:
XMLTypeAssignment.
Defines the need to assign XML item type.
Default value:
Implicit.
Type:
XMLForm.
A form used to write a data item in XML.
Description of method variant:
Writes values in XML format specifying local name of the item and namespace it belongs to.
Writes a value in XML format.
Thin client, server, thick client, external connection, Mobile application (client), Mobile application (server).
Writes values in XML format. Not all value types can be written in XML format using this method. The following value types can be written in XML: values of the following types:
Undefined,
Null,
Boolean,
Number,
String,
Date, Type,
UUID,
BinaryData,
ValueStorage,
TypeDescription, as can data object references and the data objects themselves, sets of register records, and the constant value manager. In the future, this list may be expanded. Attempt to write the value of an unsupported type triggers an exception.