android - Convert text file all data to xml format in java -
I have a text file and I have to convert this text file into XML format in all formats so that it is more readable Can be made
How can I convert it to XML format
Any java library or any way I can do this.
Your question is rather unclear (and you may find yourself answering a little bit of research), But I give you a hint.
Your sample INI file appears (traditionally used for configuration files on Windows and DOS). So, find "INI file parser". If you can not find one, you should be able to write a simple parser to use regular expressions. This is a simple file format, which includes data fields such as section titles like section titles and key = value.
To generate XML ... it should not be difficult, but "XML format" is not a useful description. Can you be more specific? For example, what can be used for XML?
Comments
Post a Comment