Tamino XML Server Version 9.7
 —  XQuery User Guide  —

Sample reviews

This doctype describes reviews.

This is the sample data:

<reviews>
  <entry>
    <title>Data on the Web</title>
    <price>34.95</price>
    <review>A very good discussion of semi-structured database systems and XML.</review>
  </entry>
  <entry>
    <title>Advanced Programming in the Unix environment</title>
    <price>65.95</price>
    <review>A clear and detailed discussion of UNIX programming.</review>
  </entry>
  <entry>
    <title>TCP/IP Illustrated</title>
    <price>65.95</price>
    <review>One of the best books on TCP/IP.</review>
  </entry>
</reviews>

Below you see the Schema Editor representation of this doctype on the left and the document type definition on the right.

graphics/reviews-tsd.png

<!ELEMENT reviews   (entry*)>
<!ELEMENT entry     (title, price, review)>
<!ELEMENT title     (#PCDATA)>
<!ELEMENT price     (#PCDATA)>
<!ELEMENT review    (#PCDATA)>

Top of page