Search within XML
Register / Login
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
XML and Related Technologies
Need help in parsing text file with list to XML
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
I have a tricky situation, I have a text file which contains thousands of lines, each lines has delimiter as tab. Here is the text snapshot
line 1 line2 line3 line4 line5 line6 line7 line8 line9
I want the xml as
<line 1> <line2/> <line3> <line4/> </line3> <line5/> <line6> <line7> <line8/> </line7> </line6> </line1> <line9/>
Any help on this is greatly appreciated.
If you try to please everybody, your progress is limited by the noisiest fool. And this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
Boost this thread!
Could annotation based and xml based configuration be used together in spring 2.5?
instanceof with boolean
Allowing & br tags to show using XSL