troubleshooting Question

VB.net Error

Avatar of rapi71
rapi71 asked on
.NET ProgrammingVisual Basic.NET
4 Comments1 Solution225 ViewsLast Modified:
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(file1, System.Text.Encoding.UTF8)

            With mywriter
                .Indentation = 4
                .IndentChar = " "
                .Formatting = .Indentation

                .WriteStartDocument()
                .Formatting = Formatting.Indented
                .WriteStartElement("CMRequest ")
                .WriteAttributeString("xmlns", "http://coursetracks.fheg.follett.com/CMRequest.xsd")
                .WriteStartElement("Header")
                .WriteAttributeString("message-class", "EDIIN")
                .WriteAttributeString("message-id", lawson_id12)
                .WriteAttributeString("message-date", sysdate)
                .WriteEndElement()
                .WriteStartElement("Data")
                .WriteStartElement("LawsonInvoices")
                .WriteAttributeString("xmlns ", "http://coursetracks.fheg.follett.com/LawsonInvoice.xsd")

                LawsonInvoice1.WriteXml(mywriter, XmlWriteMode.IgnoreSchema)

                .WriteFullEndElement()
                .WriteEndDocument()
            End With

            mywriter.Flush()
            mywriter.Close()
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros