Question : VB.Net  XML Class

I need to create an XML file that looks like this:
=======================
<ShipControl>
    <CarrierIdentifier domain="SCAC">FDE</CarrierIdentifier>
</ShipControl>
=======================
I have:

Partial Public Class cXMLRequestShipNoticeRequestShipControl
    <System.Xml.Serialization.XmlElement()> _
    Public CarrierIdentifier() As cXMLRequestShipNoticeRequestShipControlCarrierIdentifier

End Class

...

Partial Public Class cXMLRequestShipNoticeRequestShipControlCarrierIdentifier
    <System.Xml.Serialization.XmlAttribute()> _
    Public domain As String
End Class

To fill it:

            Dim xcxml_Request_ShipNoticeRequest_ShipControl_CarrierIdentifier(1) As cXMLRequestShipNoticeRequestShipControlCarrierIdentifier
            Dim CarrierID As New cXMLRequestShipNoticeRequestShipControlCarrierIdentifier
            CarrierID.domain = "SCAC"
            xcxml_Request_ShipNoticeRequest_ShipControl_CarrierIdentifier(0) = CarrierID

Obviously I've left out other fields. I had an xsd converted partly to a module, but I didn't have to deal with these fields at the time, and I'm having a hard time finding an example of how to add this one -- where there's an element with a value and an attribute.

Can someone tell me what I need to plug in so that I can set the "FDE" portion?  Seems like it should be simple, but VB doesn't seem to easily allow me to set text in an element's value, AND give it an attribute.  Surely this is simple......

BTW, I have no idea how this points system works.  Is there any reason that you wouldn't simply assign 500 points to every question you desperately need answered?!

Answer : VB.Net  XML Class

Random Solutions  
 
programming4us programming4us