XMLCanonicalizingWriter.WriteText

Syntax:

WriteText(<Text>)

Parameters:

<Text> (required)

Type: String.
Content that is placed into XML element.

Description:

Writes the content of an element. Before calling this method you should call WriteStartElement method; otherwise it is not clear to which element the content refers. Multiple calls to the method can be made for a single element. I.e., element content can be written in parts.

Availability:

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

Example:

XMLRecord.WriteStartElement("fruits");
XMLRecord.WriteStartElement("apple");
XMLRecord.WriteText("Very tasty");
XMLRecord.WriteEndElement();
XMLRecord.WriteEndElement();


    

1C:Enterprise Developer's Community