{"title":"Namespaces Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-namespaces-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-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.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-namespaces-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 namespaces on the XmlPort.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":97,"chars":24},{"level":2,"title":"Syntax","slug":"syntax","at":121,"chars":81},{"level":2,"title":"Remarks","slug":"remarks","at":202,"chars":1067},{"level":2,"title":"Related information","slug":"related-information","at":1269,"chars":141}],"text":"> Version: _Available or changed with runtime version 1.0._\nSpecifies namespaces on the XmlPort.\n## Applies to\n Xml Port\n## Syntax\n```al\nNamespaces = bc = 'urn:microsoft-dynamics-bc/xmlports/x100';\n```\n## Remarks\nYou can use this property to declare one or more namespaces on the XMLport.\nA namespace declaration consists of prefix and the namespace name, which has the format *prefix*=*namespace*. Separate multiple namespaces with a comma.\nIn 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:\n`<Root xmlns:mybcprefix=\"mybcnamespace\" xmlns=\"urn:bc:schema:all\">`\nTo 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.\n> NOTE\n> 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.\nLearn more about using namespaces with XMLports in ../devenv-using-namespaces-with-xmlports.\n## Related information\ndevenv-properties\ndevenv-namespaceprefix-property\ndevenv-defaultnamespace-property\ndevenv-usedefaultnamespace-property"}