给出了一种基于UML对XML Schema文档进行辅助设计的方法,该方法将设计过程分为3个层次,即概念层、逻辑层和物理层。概念层使用标准的UML类图对对象建模,逻辑层使用自定义的逻辑层UML类图表示,物理层则用最终的XML Schema文档表示。给出的逻辑层UML类图充分利用了XML Schema文档的嵌套结构特点,结构清晰简明,经过一系列的转换步骤,可以由概念层的UML类图生成逻辑层UML类图,并最终得到XML Schema设计。This paper presents a UML-based method for XML Schema design. The method includes three phases: conceptual, logical and physical level design. Standard UML class diagram is utilized in conceptual level, customized logical UML class diagram is utilized in logical level and textual XML Schema document is available in physical level. Fully taken consideration of the features of the XML Schema, the structures of the logical UML class diagram are concise. Through a series of steps, the logical UML class diagram can be translated from the original conceptual UML class diagram, thereafter the XML Schema can be available in a one to one manner.