# Namespaces Property
> Version: _Available or changed with runtime version 1.0._
Specifies namespaces on the XmlPort.
## Applies to
 Xml Port
## Syntax
```al
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 devenv-defaultnamespace-property and setting the devenv-usedefaultnamespace-property to true.
> NOTE
> There can only be one default namespace. So if you specify a default namespace in the Namespaces Property, you must set the devenv-usedefaultnamespace-property to false.
Learn more about using namespaces with XMLports in ../devenv-using-namespaces-with-xmlports.
## Related information
devenv-properties
devenv-namespaceprefix-property
devenv-defaultnamespace-property
devenv-usedefaultnamespace-property

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-namespaces-property, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-namespaces-property/
