The present invention provides a method, apparatus, and computer
instructions for mapping and labeling XML schema elements and types. In
an exemplary embodiment, each XML schema element and type is uniquely
labeled, using distinguishing parameters such as namespace to create name
parts like a Hashing code and suffixes in order to achieve unique
mapping. The parameters selected are predetermined in order to achieve
naming that remains distinct across successive consumptions of a schema.
The selection disclosed accomplishes unique labeling, while also
permitting one to still adhere to the strict naming standards of the
target language (e.g., Java). As a result, schema components belonging to
multiple namespaces can be mapped to Java components belonging to a
single package.