posted 17 years ago
If "custom XML style of format" means it's XML but you have a certain structure and set of element names and so on that you use, then a StringTokenizer would not be a good choice. An XML parser would be a better choice. If you haven't used one before, it will take a little bit of study to learn how, but in the long run it will result in a better solution.
(And if you have a format that looks like XML but isn't really, I would recommend you don't do it that way. Formats based on standards work better in the long run.)