I need the algorithm not the code .
I am on a project where I should not use any third party libraries other than java sdk.
I am supposed to convert a text file to an xml file.
I know that there are SAX parsers and DOM parsers available and these will make my life easy.
But I am not supposed to use those third party libraries.
So what are the basic things I need to know for achieving this