Ағылшын тілінде оқу Өзгерту

Бөлісу құралы:


Namespaces Property

Version: Available or changed with runtime version 1.0.

Specifies namespaces on the XmlPort.

Applies to

  • Xml Port

Syntax

Namespaces = bc = 'urn:microsoft-dynamics-bc/xmlports/x100';

Remarks

You can use this property to declare one or more namespaces on the XMLport.

A namespace declaration consists of prefix and the namespace name, which has the format prefix=namespace. Separate multiple namespaces with a comma.

In the XML documents exported or imported by the XMLport, the namespaces declarations are only supported in the <root> element. For example, if an XMLport has the namespace mybcprefix=mybcnamepace and the default namespace urn:bc:schema:all, then the root element will be as follows:

<Root xmlns:mybcprefix="mybcnamespace" xmlns="urn:bc:schema:all">

To specify a default namespace, set the prefix to "". You can also specify a default namespace using the DefaultNamespace Property and setting the UseDefaultNamespace Property to true.

Ескерім

There can only be one default namespace. So if you specify a default namespace in the Namespaces Property, you must set the UseDefaultNamespace Property to false.

For more information about using namespaces with XMLports, see Using Namespaces with XMLports.

Properties
NamespacePrefix Property
DefaultNamespace Property
UseDefaultNamespace Property