jenlion
IS-IT--Management
- Nov 13, 2001
- 215
I need to create an XML file that looks like this:
I have:
To fill it:
Obviously I've left out other fields. I had an xsd converted partly to a module, but it didn't include these fields, 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?
Code:
<ShipControl>
<CarrierIdentifier domain="SCAC">FDE</CarrierIdentifier>
</ShipControl>
I have:
Code:
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:
Code:
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 it didn't include these fields, 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?