Microsoft
Software
Hardware
Network
Question : VB.Net XML Class
I need to create an XML file that looks like this:
=======================
<ShipControl>
<CarrierIdentifier domain="SCAC">FDE</Carrier
Identifier
>
</ShipControl>
=======================
I have:
Partial Public Class cXMLRequestShipNoticeReque
stShipCont
rol
<System.Xml.Serialization.
XmlElement
()> _
Public CarrierIdentifier() As cXMLRequestShipNoticeReque
stShipCont
rolCarrier
Identifier
End Class
...
Partial Public Class cXMLRequestShipNoticeReque
stShipCont
rolCarrier
Identifier
<System.Xml.Serialization.
XmlAttribu
te()> _
Public domain As String
End Class
To fill it:
Dim xcxml_Request_ShipNoticeRe
quest_Ship
Control_Ca
rrierIdent
ifier(1) As cXMLRequestShipNoticeReque
stShipCont
rolCarrier
Identifier
Dim CarrierID As New cXMLRequestShipNoticeReque
stShipCont
rolCarrier
Identifier
CarrierID.domain = "SCAC"
xcxml_Request_ShipNoticeRe
quest_Ship
Control_Ca
rrierIdent
ifier(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
June 2008
http://en.wikipedia.org/wi
ki/Mozilla
_Firefox#R
elease_his
tory
Random Solutions
asp.net, c#, drop down list error
Help needed with iphone Configuration Utility, SSL certificates ,& SBS 2003
Creation of a CSV file in ASP
Visual Studio 2010
HD low level protection
osx system no longer logging into windows domain
quorum drive
how to make background black?
split comma delimited values into seperate columns in SQL 2005
Problem with EFS Recovery