Create XML Files without using HTML Tags
page 4 of 4
by Andrew Mooney
Average Rating: 
Views (Total / Last 10 Days): 26213/ 58


[ Download Code ]
After the application is finished a final message is displayed stating that three files have been created. These files are created in the same directory where the console application is located. Then the program waits for one final input. This allows the user to see the file creation message. Just press enter to end the program or close the window.

// Final message
Console.Write("The following files have been created: " + File1 + ".xml, " + 
File1 + ".xsl, " + File1 + ".htm. ") ;
// Keeps the application running until enter is pressed
string input = Console.ReadLine();

Here is what you will see when running the application:

Please enter the file name: Contacts
Please enter the number of fields:3
Please enter the name for field 1: Name
Please enter the name for field 2: Address
Please enter the name for field 3: Phone
The following files have been created: Contacts.xml, Contacts.xsl, Contacts.htm

This application is simple and very useful for web developers by providing a means to quickly create XML files without the tedious use of HTML tags. It would be very easy to customize it for creating specific types of XML and XSL files. I hope you find a place for it in your toolbox as I have.

View Entire Article

User Comments

No comments posted yet.

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2023  |  Page Processed at 2023-10-01 2:27:47 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search