Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <response>
- <history>
- <observations>
- <observation>
- <date>
- <hour>02</hour>
- </date>
- <tempm>70</tempm>
- <hum>55</hum>
- <observation>
- <observation>
- <date>
- <hour>03</hour>
- </date>
- <tempm>78</tempm>
- <hum>90</hum>
- <observation>
- </observations>
- </history>
- </response>
- SAXBuilder builder = new SAXBuilder();
- File xmlFile = new File("filePathHere");
- Document document = (Document) builder.build(xmlFile);
- Element rootNode = document.getRootElement();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement