XMLCanonicalizingWriter.WriteEndElement

Syntax:

WriteEndElement()

Description:

Completes writing of XML element. An element start tag is written when WriteStartElement method is called. Once the element start tag has been written, everything that you can write will relate to this element: embedded elements, attributes, text, etc. To end the element you will need to call WriteEndElement method. Each time WriteStartElement method is called, WriteEndElement method must be called.

Availability:

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

Example:

XMLRecord.WriteStartElement("fruits");
XMLRecord.WriteStartElement("apple");
XMLRecord.WriteEndElement();
XMLRecord.WriteStartElement("orange");
XMLRecord.WriteEndElement();
XMLRecord.WriteEndElement();


    

1C:Enterprise Developer's Community