Cor Ligthert wrote:
Michel,
I find this the easiest ones
Serialize
\\\\
Dim sw As New System.IO.StringWriter
ds.WriteXml(sw)
Dim mystring As String = sw.tostring
///
Deserialize
\\\
Dim sr As New System.IO.StringReader(mystring)
Dim ds2 As New DataSet
ds2.ReadXml(sr)
///
I hope this helps a little bit?
Cor
Cor ,, you are great
changed my code to this
Dim sw As New System.IO.StringWriter
Dim XMLHess As New XmlTextWriter(sw)
With XMLHess
.Formatting = Formatting.Indented
.Indentation = 2
.WriteStartDocument()
.WriteStartElement("onlinebestellung")
.WriteStartElement("request")
.WriteElementString("cmd", "INQUIRY") 'INQUIRY 'ORDER
.WriteEndElement()
.WriteStartElement("positionen")
'loop voor de artikelen
.WriteStartElement("artikel")
.WriteElementString("bestellartikelnummer","24.011 0-0116.1")
.WriteElementString("bestellmenge", "1")
.WriteElementString("hersteller", "ATE")
.WriteEndElement()
'einde artikelloop
.WriteEndDocument()
.Close()
strXML = sw.ToString
End With
MsgBox(strXML)
and it works exactly how i wanted
i was already considering to write the xml myself in a string but this
is much better :-)
regards and have a nice day
Michel