Outstanding ...
I trying to get text from div where class = \'review-text\', by using PHP\'s DOM element with following HTML (same structure) and following code.
The following XPath query does what you want. Just replace the argument provided to $xpath->query with the following:
//div[@class="review-text"]
Edit: For easy development, you can test your own XPath query's online at http://www.xpathtester.com/test.
Edit2: Tested this code; it worked perfectly.
Outstanding ...