Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2007-03-22
4
Medium Priority
?
391 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

636 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