What is the best way to work with xml configurations file to my application in java?
Hi experts What i开发者_StackOverflows the best way to work with xml configurations file to my application in java? Any XML parser that i found in the internet is too complex. thank you guys. Regards. elad.
What XML parsers have you tried?
What you could do is to have a class named AppSettings (for example) and then serialize it with XStream. Once you start your application, this class is loaded and you make the appropriate changes. I doubt that you will find something simpler than XStream though. Also, telling us what you have done will only help us help you...
JAXB is the easiest way to interact with XML in Java.
What is the reason for using the XML format as configuration file? For most applications a property file is sufficient and offers a much lower learning curve.
精彩评论