473,320 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Creating a XML file with VB 6.0 with a cascade format

Hello,

I use vb 6.0 to create an xml file. I use the microsoft XML V.5.0 reference.

After I create nodes, attributes etc. I use lDOMDoc.save "c:\temp\example.xml" and the xml file is saved in this path.

Everything is Ok when this file is opened with the internet explorer. But if opened as a text file, it is just one long line of text. Is there a way to
format this file to be shown in a cascade format. ?

Some XML files, when opened with the note pad, they have the line feed, tabs etc that make it possible to read by just loojing at it.

The format of this file is just one long line thats its imposible to find its structure and detect errors.

So my question is how can I create an XML file, that can be opened with the note pad, and has line feeds, tabs etc. using the standard Microsoft XML reference (msxml5.dll)?

Thanks!

Thanks,
Jun 4 '07 #1
1 2921
dorinbogdan
839 Expert 512MB
Welcome to TheScripts TSDN,

The code will always output the XML DOM object as a simple string.
The displayed format is related to the viewer (IE, Notepad...).
To display it as you requested, I'm using C# Express (it's a free version), open the file and go to Edit/Advanced/Format Document.

Let me know if you need more details.

God bless you,
Dorin.
Jun 4 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Justin | last post by:
I am extremely new at SQL Server2000 and t-sql and I'm looking to create a simple trigger. For explanation sake, let's say I have 3 columns in one table ... Col_1, Col_2 and Col_3. The data type...
5
by: Barbara Lindsey | last post by:
Thank you for your help on the trigger question. The RULE worked for most of the cases I had for this, but I have one that is giving me trouble. Here are my table definitions: CREATE SEQUENCE...
12
by: Mats Lycken | last post by:
Hi, I'm creating a CMS that I would like to be plug-in based with different plugins handling different kinds of content. What I really want is to be able to load/unload plugins on the fly without...
0
by: kirknew2SQL | last post by:
I have AdventureWorks installed. I am using SQL Server 2005. I need to import some large tab delimited text files into SQL. From the research i did I thought that using BCO would be the best...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.