51. The computer-implemented method of claim 49 , wherein said XML entity is an element reference referencing a referenced global element declaration and further comprising: determining, by said processor, whether a target namespace of said referenced global element declaration is null or the same as a target namespace of an XML schema containing said element reference; and generating, by said processor, an element declaration based on said determining.
51. The computer-implemented method of claim 49 , wherein said XML entity is an element reference referencing a referenced global element declaration and further comprising: determining, by said processor, whether a target namespace of said referenced global element declaration is null or the same as a target namespace of an XML schema containing said element reference; and generating, by said processor, an element declaration based on said determining. 52. The computer-implemented method of claim 51 , wherein said generating said element declaration comprises, if said determining determines that said target namespace of said referenced global element declaration is null or the same as the target namespace of an XML schema containing said element reference: generating, by said processor, in place of said element reference a local element declaration having a type matching a determined type of said referenced global element declaration and having a name attribute with a value set to said overriding name.