Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / October 2003

Tip: Looking for answers? Try searching our database.

Formatting Output Text

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stefano Baldi - 29 Oct 2003 09:18 GMT
I'm using Dom to save a hierarchical structure (similar to a tree) to xml
format in this way

   oXmlNode = XMLDOM.createElement("VALUECONDITION")

   'Attribute Name

   oXmlAttribute = XMLDOM.createAttribute("Name")

   oXmlAttribute.value = oValueCondition.Name

   oXmlNode.attributes.setNamedItem(oXmlAttribute)

Everything works fine. The only problem is that output text is not formatted
and when i open XML file with a text editor it's impossible to read it (the
are no tabs and no carriage return)
Is there a way to format text  in a easy way?

Thanks
Signature


  _______________

   Ing. Stefano Baldi
   ENGINEERING S.p.A. www.engineering.it
   Via Sant'Orsola 51/1, 47023 Cesena, ITALY
   Tel. ++39 547 630842/3   Fax ++39 547 630844

Oleg Tkachenko - 29 Oct 2003 13:39 GMT
> Everything works fine. The only problem is that output text is not formatted
> and when i open XML file with a text editor it's impossible to read it (the
> are no tabs and no carriage return)
> Is there a way to format text  in a easy way?

Which API are you talikng about - .NET or MSXML?
Signature

Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

Stefano Baldi - 30 Oct 2003 11:31 GMT
.NET
I would like to avoid to use XmlTextWriter

Signature

  _______________

   Ing. Stefano Baldi
   ENGINEERING S.p.A. www.engineering.it
   Via Sant'Orsola 51/1, 47023 Cesena, ITALY
   Tel. ++39 547 630842/3   Fax ++39 547 630844

> > Everything works fine. The only problem is that output text is not formatted
> > and when i open XML file with a text editor it's impossible to read it (the
> > are no tabs and no carriage return)
> > Is there a way to format text  in a easy way?
>
> Which API are you talikng about - .NET or MSXML?
Oleg Tkachenko - 30 Oct 2003 11:45 GMT
> I would like to avoid to use XmlTextWriter
Why?

Signature

Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.