Please tell me what the problem may be. I adapt the component for Joomla 4. I get this error, although everything should work.

Class '....\Component\....\Administrator\Model\SimpleXMLElement' not found
  • I see your error message, but I don't know what you did to "adapt the component for Joomla 4".
    – mickmackusa
    Nov 28 '21 at 8:05

The problem is solved. It was necessary to put a slash.

$elements = new \SimpleXMLElement($xml);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.