Use simplexml_load_string to parse this XML report warning level error, what is the cause?

use simplexml_load_string to parse this XML error.

$data = <<<XML
<ROOT xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="JobSendedDescription">
  <RetCode>Sucess</RetCode>
  <JobID>183372602</JobID>
  <OKPhoneCounts>1</OKPhoneCounts>
  <StockReduced>1</StockReduced>
  <ErrPhones />
</ROOT>
XML;
$xml = simplexml_load_string($data);
var_dump($xml);

the error content is at the warning level, and the error content is as follows

Warning: simplexml_load_string(): namespace warning : xmlns: URI JobSendedDescription is not absolute in D:\laragon\www\index.php on line 11

Warning: simplexml_load_string(): tance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="JobSendedDescription" in D:\laragon\www\index.php on line 11

Warning: simplexml_load_string(): ^ in D:\laragon\www\index.php on line 11

I changed xmlns= "JobSendedDescription" to xmlns:URI= "JobSendedDescription" , and the warning level error was eliminated. Is there something wrong with this XML grammar or simplexml_load_string cannot parse this XML??

Php
Jul.23,2021

xmlns is a url, if not that the xml is not standard. So php sent a warning

Menu