Creating new xml schema file example ? [message #986] |
Tue, 24 September 2002 15:15 |
Eclipse User |
|
|
|
Originally posted by: v.nisevic.mobilkom.at
Could you please show, how to create a simple xml schema file, with this
framework, including writing it to the file system. I cannot find enough
information classes org.eclipse.xsd.util
Thanks !
E.g.
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="book">
<xs:complexType>
<xs:sequence>
<xs:element name="title" type="xs:string"/>
<xs:element name="author" type="xs:string"/>
<xs:element name="character" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string"/>
<xs:element name="friend-of" type="xs:string" minOccurs="0"
maxOccurs="unbounded"/>
<xs:element name="since" type="xs:date"/>
<xs:element name="qualification" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="isbn" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:schema>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03156 seconds