Q:

How can I properly generate xml elements using intellisense and xml schemas in vb.net?

Using intellisense in VB.NET, how can I properly generate xml elements? 
Whenever I try to add values to child elements they are ignored.
Consider this code:
Dim XML As XElement = <Customer/>
With XML
    .SetAttributeValue("ID", 1)
    .<CustomerNumber>.Value = "D234"
    .<Name>.Value = "SomeName"
End With
Debug.WriteLine(XML.ToString)

This will output:
<Customer xmlns="http://Customer" ID="1" />

In other words the child elements "CustomerNumber" and "Name" are ignored.
How can I properly add the child elements using this intellisense approach?

A:

They are not ignored - they don't exist.
Dim XML As XElement = <Customer>
                        <CustomerNumber/>
                        <Name/>
                      </Customer>
With XML
  .SetAttributeValue("ID", 1)
  .<CustomerNumber>.Value = "D234"
  .<Name>.Value = "SomeName"
End With
Debug.Write(XML.ToString)

