how I could use PHP dom screen scraping to pull the contents of an HTML tag called
<li style="margin-top:10px">
positioned in one of my pages?
I want to get all the contents of the <li> tag and display it as html code.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use simpleXML and xpath. Supposing your HTML is all stored in the string
$html, this may fit your need: