Solved

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

Posted on 2007-03-22
4
380 Views
Last Modified: 2008-01-09
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
0
Comment
Question by:vmandem
4 Comments
 
LVL 6

Expert Comment

by:kerryw60
ID: 18771968
just guessing...

.WriteComment(ControlChars.Cr)
0
 
LVL 6

Accepted Solution

by:
Jon_Raymond earned 50 total points
ID: 18772917
or .WriteComment("This Is the MISO Real Time LMP Prices that goes into Zainet using the importer" & vbCrLf)
0
 

Author Comment

by:vmandem
ID: 18773044
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
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now