摘要 |
Techniques are provided for accessing data stored in XML documents (102) using objects defined in object-oriented languages, such as Java. In one embodiment, a translation tool identifies the data nodes in an XML DTD (104) associated with an XML document (102). The translation tool converts each of the identified nodes to a corresponding Java class (110) in which a top-level data node in the XML DTD corresponds to a top-level Java class. From the Java classes (110) and data in the XML document (102), a Java object (124) is instantiated. The Java object (124) thus can be used to advantageously access the data in the XML document (102) in the Java language domain. |