Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Document document = SAXReaderUtil.read(journalArticleObject.getContentByLocale(Locale.ENGLISH.toString()));
- brandNode = document.selectSingleNode("/root/dynamic-element[@name='Brand']/dynamic-content");
- String brand = brandNode.getText();
- modelNumberNode = document.selectSingleNode("/root/dynamic-element[@name='Model_Number']/dynamic-content");
- String modelNumber = modelNumberNode.getText();
- descriptionNode = document.selectSingleNode("/root/dynamic-element[@name='Description']/dynamic-content");
- String description = descriptionNode.getText();
- cameraNode = document.selectSingleNode("/root/dynamic-element[@name='Camera']/dynamic-content");
- String camera = cameraNode.getText();
- priceNode = document.selectSingleNode("/root/dynamic-element[@name='Price']/dynamic-content");
- String price = priceNode.getText();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement