DOMNodeWriter.WriteText

Syntax:

WriteText(<Text>)

Parameters:

<Text> (required)

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

Description:

Writes element text. Before calling this method, you must call method DOMNodeWriter.WriteStartElement, otherwise it is impossible to tell, to which element the text belongs. Multiple calls to this method can be made for a single element. That is, element contents 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