SyntaxFix
Write A Post
Hire A Developer
Questions
Since you are using this for configuration, your best bet is apache commons-configuration. For simple files it's way easier to use than "raw" XML parsers.
See the XML how-to