Using XMLReader With Plugin In my project, I have a reference to XMLReader in a plugin; however, I get this error message:

Class 'Craft\XMLReader' not found


Here is the code which calls it:

$reader = new XMLReader();


Can XMLReader be used within Craft, or can there be a customization which would allow it?  Thanks
You need to be in the correct namespace try

$reader = new \XMLReader();


Like here