WriteStartElement()

XmlTextWriter::WriteStartElement(const String&, const String&, const String&) method

Writes the specified start tag and associates it with the given namespace and prefix.

void System::Xml::XmlTextWriter::WriteStartElement(const String &prefix, const String &localName, const String &ns) override

Arguments

ParameterTypeDescription
prefixconst String&The namespace prefix of the element.
localNameconst String&The local name of the element.
nsconst String&The namespace URI to associate with the element. If this namespace is already in scope and has an associated prefix then the writer automatically writes that prefix also.

Exceptions

ExceptionDescription
InvalidOperationExceptionThe writer is closed.

See Also