1. A method for efficiently managing XML namespaces associated with an Extensible Markup Language (XML) document, comprising: receiving an XML document; parsing the XML document for locating one or more XML tags applied to the document; parsing the one or more XML tags to determine a prefix and a namespace associated with the one or more XML tags; building a namespace table for mapping a prefix for each of the one or more XML tags to a namespace for each of the one or more XML tags; and building an XML output array whereby the output array provides an identification for each of the one or more XML tags, a namespace identification for each of the one or more XML tags, and a pointer to a namespace table for each of the one or more XML tags, the namespace table for pointing to a prefix-to-namespace relationship for each of the one or more XML tags.