19. The computer readable medium of claim 15 , wherein said XML entity is an element reference referencing a referenced global element declaration and wherein said computer-executable instructions further cause said computing device to: (a) determine 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 (b) generate an element declaration based on (a).
19. The computer readable medium of claim 15 , wherein said XML entity is an element reference referencing a referenced global element declaration and wherein said computer-executable instructions further cause said computing device to: (a) determine 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 (b) generate an element declaration based on (a). 23. The computer readable medium of claim 19 , wherein (b) comprises, if it is determined in (a) that said target namespace of said referenced global element declaration is neither null nor the same as the target namespace of an XML schema containing said element reference: creating a new global element declaration with a derived type based on a determined type of said referenced global element declaration and a target namespace matching said target namespace of said referenced global element declaration; and setting said element reference to reference said new global element declaration.