Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting text files to xml

Status
Not open for further replies.

ProgrammingB52

Technical User
May 7, 2003
37
0
0
US
I have about a hundred text files,each text file contains information about a person.I have to have these in xml.Is it possible to create an xml schema based on the text files and then import all of these text files to xml with element,field names defined from the schema. When I import them now without the schema the elements are field1,field2 and so on.I am using xml spy.
 
In short... No

XML schema requires the file to be in XML...

I would suggest looking into a way to use XML Dom to create the files, with the help of VB or java (maybe even vbscript or javascript)

What do the text files look like...?

If you can provide a sample, we can supply more info to get you started...

Hope This Helps

Visit My Site
PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top