// simple example of loading an xml file into Properties.<code>
Properties properties = new Properties();
try {
InputStream xmlStream = getClass().getResourceAsStream("properties.xml");
if( xmlStream == null ) {
//throw some error
}
properties.loadFromXML(xmlStream);
} catch (IOException...
↧