Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- InputStream is = getClass().getClassLoader().getResourceAsStream("../resources/password.xml");
- DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
- DocumentBuilder builder;
- try {
- builder = factory.newDocumentBuilder();
- Document document = builder.parse(is);
- WebSettings.password = document.getElementsByTagName("password").item(0).getNodeValue();
- } catch (ParserConfigurationException | SAXException | IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement