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

Read Processing XML with Java has plenty of examples dependent only on SAX.

PS: Tell who ever said no to 3rd party libraries that he is idiot

commented: Totally agree with your comment about 3rd party libraries. +0
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.