# DefaultNamespace Property
> Version: _Available or changed with runtime version 1.0._
Specifies the default namespace for both the IMPORT function (XmlPort) and EXPORT function (XmlPort) functions.
## Applies to
 Xml Port
## Syntax
```al
DefaultNamespace = 'urn:microsoft-dynamics-nav/xmlports/x100';
```
## Remarks
This property specifies the default namespace for both import and export. A default namespace is a namespace that does not include a prefix. The default prefix is applied to all the elements that do not include a prefix and is unique for different XMLports. For example, the following string specifies a namespace: `urn:microsoft-dynamics-nav/xmlports/x100`, where 100 is the ID of the XMLport.
> NOTE
> There can only be one default namespace. So if you specify a default namespace in the devenv-namespaces-property, you must set the devenv-usedefaultnamespace-property to false.
For more information about using namespaces with XMLports, see ../devenv-using-namespaces-with-xmlports.
## Related information
devenv-properties
devenv-namespaces-property
devenv-namespaceprefix-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-defaultnamespace-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-defaultnamespace-property/
