XML Schema Flashcards

(6 cards)

1
Q

XML-Schema: Allgemeines

Beispiel zu Occurrence indicators:

  • minOccurs
  • maxOccurs
A
<xs:element name="kommentar" type ="xs:string"
              minOccurs="0"  max Occurs"unbounded"/>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

XML-Schema: Allgemeines

Beispiel zu Order indicators:

  • all
  • choice
  • sequence
A
<xs:complexType name="person">
<xs:all>
		                 <xs:element name="name" type="xs:string"/>
			            <xs:element name="geschlecht" type="geschlecht"/>
</xs:all>
</xs:complexType>

Zweites Beispiel:

<xs:complexType name=film">
<xs:sequence>
                        <xs:element name="titel" type="xs:string" />
                         <xs:element name="regisseur" type="person" />
...
</xs:sequence>
</xs:complexType>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

XML-Schema: Allgemeines

Basis-Dokument

A
<?xml version="1.0"?>
<xs:schema xmlns:xs="http:/...>
</xs:schema>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

XML-Schema: Allgemeines

Elemente

A
<xs:element name="xxx" type="yyy"/>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

XML-Schema: Allgemeines

Simple Type

A
<xs:element name="cover" type="coverType"/>

<xs:simpleType name="coverType">
<xs:restriction base="xs:string">
<xs:enumeration value="hardcover"/>
<xs:enumeration value="hardcover"/>
<xs:restriction>
</xs:simpleType>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

XML-Schema: Allgemeines

Complex Type

A
<xs:element name="e-Book" type="bookType"/>
<xs:element name="book" type="bookType"/>

<xs:complexType name="bookType>
<xs:sequence>
<xs:element name="title" type="xs:string"/>
<xs:element name="price" type="xs:decimal"/>
<xs:sequence>

<xs:attribute name="lang" type="is:langType" default="en"/>

</xs:complexType>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly