- From: <wu.liu@verizon.com>
- Date: Thu, 24 Jan 2002 17:49:26 -0500 (EST)
- To: xmlschema-dev@w3.org
Hi, I have 2 data structures: =============================================== struct MyStructType { string first; string second; }; typedef MyStructType MyTypedefType; =============================================== The corresponding datatype for MyStructType in schema is: ===================================================================== <complexType name="MyStructType"> <sequence> <element name="first" type=string"/> <element name="second" type="string"/> </sequence> </complexType> ===================================================================== But how to treat typedef? The following definition gives me error: ===================================================================== <complexType name="MyTypedefType"> <restriction base="MyStructType "/> </complexType> ===================================================================== Please advise. Thanks, Wu
Received on Friday, 25 January 2002 13:21:49 UTC