1. A method for mapping a tag in a markup language (ML) document to a class using namespaces, comprising: analyzing a tag in the ML document, wherein the tag is associated with a definition file location attribute in the ML document; retrieving a definition file associated with the definition file location attribute, wherein the definition file includes a namespace associated with the tag; and determining a class associated with the tag based on the namespace such that the tag is mapped to the class.