Unit testing for converting xml file to php classes

i tried this $xml = simplexml_load_string($xmlstr, ‘ExchangedDocument’, LIBXML_NOCDATA); but it shows this error
Warning Error: simplexml_load_string() expects parameter 2 to be a class name derived from SimpleXMLElement, ‘ExchangedDocument’