摘要 |
<p>XML is used to express model object data for an MES application model object. The data for the model object is held in a database. To export information, the database definition is used to construct XML tag information and the database values are used to construct XML element contents. To import information, the XML tag information is used to construct database references, and the XML element contents are used to load the database. To export information, database address information names are used to form XML tag labels, and the model object data in the database is used to form XML element contents. New classes are created that are derived from the model object class. The new classes inherit the functionality of the model object classes but they also include new import and export methods that effectively wrap, or layer, the import or export logic around the model objects. DTDs may be used to validate XML documents that are exported or imported from such a system. Code generation facilitates the creation of the new class definitions and the DTD. The code generation considers the database metadata in generating the code.</p> |