Link to home
Start Free TrialLog in
Avatar of vmandem
vmandem

asked on

How to break a line in between xml tags in VB.NET

I have xml tags shown as

  mywriter = New system.xml.xmltextwriter("c:\temp")

with mywriter
                 
.WriteComment("This Is the MISO Real Time LMP Prices that goes into Zainet using the importer")

                .WriteStartElement("importFile")
                .WriteAttributeString("template", "default")
                .WriteAttributeString("sysdate", Now.ToString("yyyy-MM-dd"))
                .WriteAttributeString("dateFmt ", "YYYYMMDD")

I want to get a line break between .writecomment tag and .writestartElement. What should I do for that.

Thanks
VM
Avatar of kerryw60
kerryw60

just guessing...

.WriteComment(ControlChars.Cr)
ASKER CERTIFIED SOLUTION
Avatar of Jon_Raymond
Jon_Raymond

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vmandem

ASKER

I did not get a blank line instead I got carriage return like : <!----->. Is there any way to get a white space in there.

Thanks
VM