I use this code
$html = file_get_html('http://example.com');
But I want convert it to XML file then use some functions on it. how can I do this?
I want to use this code. Can I?
$html = file_get_html('http://example.com');
$doc = new DOMDocument();
$doc->loadHTML($html);
$xml=simplexml_load_string($doc) or die("Errooooooor");
print_r($xml);