XMLCanonicalizingWriter.WriteNamespaceMapping

Syntax:

WriteNamespaceMapping(<Prefix>, <NamespaceURI>)

Parameters:

<Prefix> (required)

Type: String.
Name prefix.

<NamespaceURI> (required)

Type: String.
Namespace URI, for which a corresponding prefix is set.

Description:

Writes mapping for prefix and namespace URI. You should call this method after calling WriteStartElement method and before writing embedded elements and element content. The mapping applies within the current element and all embedded ones.

Availability:

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

Example:

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


    

1C:Enterprise Developer's Community