Converting a textfile to XML

  • Thread starter Thread starter helmut
  • Start date Start date
H

helmut

I have a output-file from the program listdlls and i want to conert it
to XML. I am new in dotnet and i need some help.
 
helmut said:
I have a output-file from the program listdlls and i want to conert it
to XML. I am new in dotnet and i need some help.

For XML processing, take a look at the classes provided in the 'System.Xml'
namespace. For parsing the text file, you can use methods of the
'System.Text' namespace, for example.

Reading a text file line-by-line or blockwise with a progress indicator
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=readfile&lang=en>
 
helmut,
In addition to the other comments.

Do you have the source to listdlls?

If you have the source to listdlls, it might be easiest to have it create an
XML file using an XmlWriter as Cor suggests. I would modify listdlls such
that it could create either the text file it currently is or an XML file...

If you do not have the source to listdlls, then depending on what I wanted
to do with the XML I would consider creating a custom XmlReader as described
in this article:

http://msdn.microsoft.com/msdnmag/issues/04/05/xmlfiles/

Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top