Skip to content


DDC-2431: XML Not parsed #3146

doctrinebot opened this Issue · 2 comments

2 participants


Jira issue originally created by user pcastrotigre:

When i try to generate my entities mapping in Symfony2 using XML I always get the same error:

Element '{}doctrine-mapping': No matching global declaration avail

able for the validation root

I am not adding any column, because first i need to validate the XML which I can't.

<?xml version="1.0" encoding="UTF-8"?>


As you can figure out, my XML is very simple. I am doing just for the validation testing. After this could be validated, I will map my entities.

Thanks for your help.



Comment created by @beberlei:

The Doctrine XSD hooks itself into the global namespace, see for usage. It should work when you loose the "xmlns:orm" and define the tags as ""


Issue was closed with resolution "Invalid"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.