DDC-2431: XML Not parsed #3049

Closed
opened 2026-01-22 14:10:47 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (May 5, 2013).

Originally assigned to: @beberlei on GitHub.

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 '{http://doctrine-project.org/schemas/orm/doctrine-mapping}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"?>

<orm:doctrine-mapping
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:orm='http://doctrine-project.org/schemas/orm/doctrine-mapping'
xsi:schemaLocation='http://doctrine-project.org/schemas/orm/doctrine-mapping http://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd'>

/orm:doctrine-mapping

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.

Regards,
Peter

Originally created by @doctrinebot on GitHub (May 5, 2013). Originally assigned to: @beberlei on GitHub. 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 '{http://doctrine-project.org/schemas/orm/doctrine-mapping}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"?> <orm:doctrine-mapping xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:orm='http://doctrine-project.org/schemas/orm/doctrine-mapping' xsi:schemaLocation='http://doctrine-project.org/schemas/orm/doctrine-mapping http://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd'> /orm:doctrine-mapping 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. Regards, Peter
admin added the Bug label 2026-01-22 14:10:47 +01:00
admin closed this issue 2026-01-22 14:10:47 +01:00
Author
Owner

@doctrinebot commented on GitHub (May 9, 2013):

Comment created by @beberlei:

The Doctrine XSD hooks itself into the global namespace, see http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/xml-mapping.html for usage. It should work when you loose the "xmlns:orm" and define the tags as ""

@doctrinebot commented on GitHub (May 9, 2013): Comment created by @beberlei: The Doctrine XSD hooks itself into the global namespace, see http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/xml-mapping.html for usage. It should work when you loose the "xmlns:orm" and define the tags as "<doctrine-mapping>"
Author
Owner

@doctrinebot commented on GitHub (May 9, 2013):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (May 9, 2013): Issue was closed with resolution "Invalid"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3049