XMLCanonicalizingWriter.WriteStartElement

Syntax variant: Writing the element start tag with full element name

Syntax:

WriteStartElement(<FullName>)

Parameters:

<FullName> (required)

Type: String.
Full name of a recorded element. Can include a prefix. E.g., "nsp".

Syntax variant: Writing the element start tag with local name and namespace URI

Syntax:

WriteStartElement(<LocalName>, <NamespaceURI>)

Parameters:

<LocalName> (required)

Type: String.
Local element name (without prefix).

<NamespaceURI> (required)

Type: String.
Namespace URI for an element name.
Namespace mapping must be written when writing this element or the upper element.

Description:

Use it to write an element start tag. If you use an option with a local name and namespace URI, please note that namespace mapping must be written when writing this element or the upper element.

Availability:

Thin client, server, thick client, external connection, Mobile application (client), Mobile application (server).

Example:

XMLRecord.WriteStartElement("weight", "http://metrics.org");
XMLRecord.WriteNamespaceMapping("nsp", "http://metrics.org");
XMLRecord.WriteText("12.5");
XMLRecord.WriteEndElement();


    

1C:Enterprise Developer's Community