Is possible to convert formatted string to xml format or array in PHP? I have string format like this:\[code\]$prop = " large { width: 10px; height: 10px; } small { width: 5px; height: 5px; }";\[/code\]I want this string converted to xml format or array like:\[code\]<large> <width>10px</width> <height>10px</height></large><small> <width>5px</width> <height>5px</height></small>$array = array( "large" => array( "width" => "10px", "height" => "10px" ), "small" => array( "width" => "5px", "height" => "5px" ));\[/code\]Thanks.