?
Solved

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

Posted on 2007-03-22
4
Medium Priority
?
393 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
3 Comments
 
LVL 6

Expert Comment

by:kerryw60
ID: 18771968
just guessing...

.WriteComment(ControlChars.Cr)
0
 
LVL 6

Accepted Solution

by:
Jon_Raymond earned 150 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Integration Management Part 2
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?

850 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