{"title":"DefaultNamespace Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-defaultnamespace-property/","by":"JOP-AL","license":"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.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-defaultnamespace-property","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Specifies the default namespace for both the IMPORT function (XmlPort) and EXPORT function (XmlPort) functions.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":172,"chars":24},{"level":2,"title":"Syntax","slug":"syntax","at":196,"chars":83},{"level":2,"title":"Remarks","slug":"remarks","at":279,"chars":697},{"level":2,"title":"Related information","slug":"related-information","at":976,"chars":135}],"text":"> Version: _Available or changed with runtime version 1.0._\nSpecifies the default namespace for both the IMPORT function (XmlPort) and EXPORT function (XmlPort) functions.\n## Applies to\n Xml Port\n## Syntax\n```al\nDefaultNamespace = 'urn:microsoft-dynamics-nav/xmlports/x100';\n```\n## Remarks\nThis 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.\n> NOTE\n> 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.\nFor more information about using namespaces with XMLports, see ../devenv-using-namespaces-with-xmlports.\n## Related information\ndevenv-properties\ndevenv-namespaces-property\ndevenv-namespaceprefix-property\ndevenv-usedefaultnamespace-property"}