-
read/write data to an XML file..???
Hi to all....
How do I read and write data to an XML file???
thanks for any reply....
-
I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
Please use [Code]your code goes in here[/Code] tags when posting code.
Before posting your question, did you look here?
Got a question on Linux? Visit our Linux sister site.
Modifications Required For VB6 Apps To Work On Vista
-
Hi Oliver
The System.XML namespace defines XMLReader and XMLWriter classes. See http://msdn2.microsoft.com/en-us/lib...er(VS.80).aspx
XML is fundamentally just plain text with a bunch of tags, much like XML.
If you want, you can treat a .xml file just like a text file, opening it StreamReader and writing with StreamWriter, for example. If all you need is to extract a few key strings from a file, this works well and can be a bit faster if the document is large. I wouldn't generally try to write an xml file as a text file, though; I'd use something from System.XML to make sure the document structure doesn't get broken.
Stephen Lowe
disclaimer: Though I work for Microsoft as an Architect\Developer Evangelist, my opinions (and occasional errors) are my own.
Similar Threads
-
By shoham78 in forum .NET
Replies: 2
Last Post: 04-23-2008, 05:30 AM
-
Replies: 1
Last Post: 11-28-2005, 04:07 PM
-
By Tomer Cagan in forum ASP.NET
Replies: 1
Last Post: 07-24-2001, 09:01 AM
-
By KENHOW in forum VB Classic
Replies: 0
Last Post: 07-13-2001, 04:02 PM
-
By Leena Kumawat in forum XML
Replies: 0
Last Post: 06-19-2001, 07:56 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks