Kirk Evans is a Microsoft Architect for the Azure Center of Excellence.
Introduction to SharePoint and Azure IaaS
Building SharePoint Apps with Windows Azure Platform as a Service
SharePoint Solutions and Architectures on Windows Azure Infrastructure Services
Understanding Authentication and Permissions with Apps for SharePoint and Office
I have to create this same structure using the DOM model. How do I create the namespace attributes?
The problem in Antonio's case is the unused "imsmd" namespace prefix. This example shows how to create a namespace prefix as an attribute, how to create an attribute bound to a namespace, and how the namespace declaration is automatically generated based on a specified namespace prefix and namespace URI (notice how the xsi:schemaLocation attribute is created in this example):