this has nothing to do with Sonata XML. It's something which is wrong in the Symfony code while parsing the arguments for tags. I've submitted a fix for it: symfony/symfony#9489