added validation in order to spot errors sooner: element can not be child of itself
added @since Symphony 2.4.1 on validateChild
Merge pull request #2081 from DeuxHuitHuit/XMLElement-this

XMLElement: prevent any element from being a child of itself.