question about xml-shema-tsd

hi, I am the beginner of the xml and tamino, so let me ask some basic questions :

<?xml version=“1.0” >






my question is that how can I describe it in TSD or in Xml-Schema , Thanks.

For something as very basic as this: I would start by creating a simple DTD that matches this structure and importing it into the Tamino Schema Editor and then this gives you a starting point. However you need to know about XML Schemas.

As you are a xml newbie I would suggest training or buying some good books. Some of the books from Wrox press are good especially the “Professional XML Schemas”.

thanks for your help!

I found that I could do like this:
1. use xmlspy to create the schema from xml
2. set the attribute of the “User” . add 3 attributes to them as follow:



<xs:element name=“PowerXML”>
xs:annotation
xs:documentationComment describing your root element</xs:documentation>
</xs:annotation>
xs:complexType
xs:sequence
<xs:element name=“User” maxOccurs=“unbounded”>
xs:annotation
xs:documentationname password power</xs:documentation>
</xs:annotation>
xs:complexType
<xs:attribute name=“name” type=“xs:string” use=“required”/>
<xs:attribute name=“password” type=“xs:string” use=“required”/>
<xs:attribute name=“power” type=“xs:string” use=“required”/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>


And I can import it to the tamino…

Thank you.

Stuart,

thanks for mentioning the training issue.

With its XML Academy, Software AG offers a comprising set of high-quality training courses on both XML and Tamino subjects, including most of the topics which are constantly discussed in these Forums, starting from installation, administration to schema definition, queries, APIs, style sheets, application programming, etc.

Course schedules of the XMLAcademy worldwide are available at http://www.theXMLAcademy.com .

Regards
Roland