XmlSerializationWriterWriteStartElement Method (String, String, Object, Boolean, XmlSerializerNamespaces) |
Writes an opening element tag, including any attributes.
Namespace: System.Xml.SerializationAssembly: CSharpXamlForHtml5.System.Xml.dll (in CSharpXamlForHtml5.System.Xml.dll.dll) Version: 1.0.0.0
Syntax protected void WriteStartElement(
string name,
string ns,
Object o,
bool writePrefixed,
XmlSerializerNamespaces xmlns
)
Parameters
- name
- Type: SystemString
The local name of the XML element to write. - ns
- Type: SystemString
The namespace of the XML element to write. - o
- Type: SystemObject
The object being serialized as an XML element. - writePrefixed
- Type: SystemBoolean
true to write the element name with a prefix if none is available for the
specified namespace; otherwise, false.
- xmlns
- Type: System.Xml.SerializationXmlSerializerNamespaces
An instance of the System.Xml.Serialization.XmlSerializerNamespaces class
that contains prefix and namespace pairs to be used in the generated XML.
See Also