Solved

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

Posted on 2007-03-22
4
377 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
Comment Utility
just guessing...

.WriteComment(ControlChars.Cr)
0
 
LVL 6

Accepted Solution

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

Author Comment

by:vmandem
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 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

18 Experts available now in Live!

Get 1:1 Help Now