Test XML String equivalency, not simple string equality

As requested by @elkuku in joomla/joomla-cms#2620