Use XModuleDescriptor.parse_xml to interpret XML.
Update XBlock requirement to new XML code.