<?php $xml='<?xml version="1.0" encoding="UTF-8" ?><a><b id="foo"/>bar</a>'; $simpleXML= simplexml_load_string($xml); echo json_encode($simpleXML);
You have javascript disabled. You will not be able to edit any code.