4. The method of claim 1 , wherein building the namespace table for mapping the prefix associated with the at least one XML tag to the namespace associated with the at least one XML tag includes building the namespace table containing multiple mappings of a one tag prefix to different namespaces.
1. A computer-implemented method for creating and managing Extensible Markup Language (XML) namespaces associated with an XML document, the method comprising: receiving the XML document on a computer; parsing the XML document for locating at least one XML tag applied to the XML document; parsing the at least one XML tag to determine a prefix associated with the at least one XML tag and a namespace associated with the at least one XML tag; building a namespace table for mapping the prefix associated with the at least one XML tag to the namespace associated with the at least one XML tag, wherein building the namespace comprises: creating the namespace table associated with the at least one XML tag, mapping the prefix associated with at least one XML tag to the namespace table, determining whether at least one additional XML tag should be associated with the namespace table, in response to determining that the at least one additional XML tag should be associated with the namespace table, determining whether a prefix associated with the at least one additional XML tag is mapped to the namespace table, in response to determining that the prefix associated with the at least one additional XML tag is not mapped to the namespace table, mapping the prefix associated with the at least one additional XML tag to the namespace table, and storing each of the mapped prefixes in the namespace table in sorted order; building an XML output array, wherein the XML output array provides an identification for the at least one XML tag, a namespace identification for the at least one XML tag, and a pointer to the namespace table for the at least one XML tag; allowing modification of the at least one XML tag contained in the XML output array; and rewriting the parsed XML document to text after allowing modification of the at least one XML tag contained in the XML output array, wherein rewriting the parsed XML document to text after allowing modification of the at least one XML tag comprises: recreating the namespace table associated with the at least one XML tag, determining whether the at least one XML tag has at least one attribute for registering a new namespace, upon determination that the at least one XML tag has at least one attribute for registering the new namespace, updating the prefix associated with the at least one XML tag and creating a new namespace table for the at least one XML tag; and outputting the parsed XML document to text.