Advertisement
Guest User

Untitled

a guest
Aug 30th, 2015
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. Document document = SAXReaderUtil.read(journalArticleObject.getContentByLocale(Locale.ENGLISH.toString()));
  2.  
  3. brandNode = document.selectSingleNode("/root/dynamic-element[@name='Brand']/dynamic-content");
  4. String brand = brandNode.getText();
  5.  
  6. modelNumberNode = document.selectSingleNode("/root/dynamic-element[@name='Model_Number']/dynamic-content");
  7. String modelNumber = modelNumberNode.getText();
  8.  
  9. descriptionNode = document.selectSingleNode("/root/dynamic-element[@name='Description']/dynamic-content");
  10. String description = descriptionNode.getText();
  11.  
  12. cameraNode = document.selectSingleNode("/root/dynamic-element[@name='Camera']/dynamic-content");
  13. String camera = cameraNode.getText();
  14.  
  15. priceNode = document.selectSingleNode("/root/dynamic-element[@name='Price']/dynamic-content");
  16. String price = priceNode.getText();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement