5 Replies - 4569 Views - Last Post: 08 March 2010 - 08:10 AM Rate Topic: -----

#1 vnarao6  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 24-February 10

convert txt file to xml file

Posted 24 February 2010 - 12:26 AM

hi..can any one sujjest me how to convert *.txt (pre-defined) file to xml file?
Is This A Good Question/Topic? 0
  • +

Replies To: convert txt file to xml file

#2 keakTheGEEK  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 108
  • View blog
  • Posts: 344
  • Joined: 23-February 10

Re: convert txt file to xml file

Posted 24 February 2010 - 12:41 AM

I would start with googling System.Xml namespace
Was This Post Helpful? 0
  • +
  • -

#3 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 421
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: convert txt file to xml file

Posted 24 February 2010 - 09:03 AM

So is the text document already in a valid XML format?

Can you post an example of a text file that you want to convert to XML?
Was This Post Helpful? 0
  • +
  • -

#4 vnarao6  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 24-February 10

Re: convert txt file to xml file

Posted 05 March 2010 - 03:41 AM

hey no.. i just want the code to convert predefined text file to mxl file...can you show with an example?
Was This Post Helpful? 0
  • +
  • -

#5 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 421
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: convert txt file to xml file

Posted 05 March 2010 - 08:21 AM

Since you didn't provide an example of what your text file looks like, I could not possibly give you an example that would be relevant to what you need.

We need to know what the format of your text file is before we can provide a possible solution.
Was This Post Helpful? 0
  • +
  • -

#6 vnarao6  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 24-February 10

Re: convert txt file to xml file

Posted 08 March 2010 - 08:10 AM

hey my guide has still not given any specific format...but he had explained me like this...
the text file may contain data's like
name;id;company;city;country;codes.....etc
like this several text files should be accessed by asp.net and using a particular xml schema we have to validate the converted xml file(from text/xls formats).
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1