FastInfosetWriter.WriteNamespaceMapping

Syntax:

WriteNamespaceMapping(<Prefix>, <NamespaceURI>)

Parameters:

<Prefix> (required)

Type: String.
Name prefix.

<NamespaceURI> (required)

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

Description:

Writes the mapping for the prefix and namespace URI. You should call this method after calling the FastInfosetWriter.WriteStartElement method and before recording 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