<?php $str = '<div data-design="05" data-test="test"></div>'; $xml = simplexml_load_string($str); echo $xml[0]['data-design'];
You have javascript disabled. You will not be able to edit any code.