I have a .net service version 1.14 Recently I cahnged to version 2.0
There I'm agetting error as :
<UPC xml:space="preserve"> </UPC> Is there any way to take off xml:space="preserve"
I want <UPC></UPC>
On my Code I'm using a dataset
Dim mywriter As System.Xml.XmlTextWriter
mywriter = New System.Xml.XmlTextWriter(f
ile1, System.Text.Encoding.UTF8)
With mywriter
.Indentation = 4
.IndentChar = " "
.Formatting = .Indentation
.WriteStartDocument()
.Formatting = Formatting.Indented
.WriteStartElement("CMRequ
est ")
.WriteAttributeString("xml
ns", "
http://coursetracks.fheg.follett.com/CMRequest.xsd")
.WriteStartElement("Header
")
.WriteAttributeString("mes
sage-class
", "EDIIN")
.WriteAttributeString("mes
sage-id", lawson_id12)
.WriteAttributeString("mes
sage-date"
, sysdate)
.WriteEndElement()
.WriteStartElement("Data")
.WriteStartElement("Lawson
Invoices")
.WriteAttributeString("xml
ns ", "
http://coursetracks.fheg.follett.com/LawsonInvoice.xsd")
LawsonInvoice1.WriteXml(my
writer, XmlWriteMode.IgnoreSchema)
.WriteFullEndElement()
.WriteEndDocument()
End With
mywriter.Flush()
mywriter.Close()
Our community of experts have been thoroughly vetted for their expertise and industry experience.