How to convert fixed-column size files to XML
Posted: Tue May 24, 2005 8:16 pm
hi all,
I have some files with fixed column size and want to convert them to XML...
Till know i only found that TextPipe only converts Tab-seperated columns and CVS's to XML...
want make this job a little bit harder is that in some files I need to create sub-elements in my XML...
each line starts with something like this. "#PARENT1 " or "#CHILD01"
so if if have a file with this content:
I need to convert it to xml and still make the (sub)elements.. can this be done with TextPipe?
I have some files with fixed column size and want to convert them to XML...
Till know i only found that TextPipe only converts Tab-seperated columns and CVS's to XML...
want make this job a little bit harder is that in some files I need to create sub-elements in my XML...
each line starts with something like this. "#PARENT1 " or "#CHILD01"
so if if have a file with this content:
Code: Select all
#PARENT1 VALUE1 VALUE2 VALUE3 VALUE4
#CHILD01 MYSUBVALUE11 MYSYBVALUE333 MYSYBVALUE3335
#CHILD01 MYSUBVALUE12 MYSYBVALUE343 MYSYBVALUE3332
#PARENT1 VALUE1 VALUE2 VALUE3 VALUE4
#CHILD01 MYSUBVALUE11 MYSYBVALUE333 MYSYBVALUE3335
#PARENT1 VALUE1 VALUE2 VALUE3 VALUE4
#CHILD01 MYSUBVALUE61 MYSYBVALUE334 MYSYBVALUE3333
#CHILD01 MYSUBVALUE52 MYSYBVALUE346 MYSYBVALUE3332
#CHILD01 MYSUBVALUE42 MYSYBVALUE349 MYSYBVALUE3331