exemplo - ]> <documento>...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/css" href="exemplo.css"?> <!DOCTYPE documento [ <!ENTITY hoje "hoje.xml"> <!ELEMENT documento (cabecalho?,corpo?)> <!ATTLIST documento lingua CDATA #FIXED "pt" > <!ELEMENT cabecalho (tipo,data,cliente,vendedor?)> <!ELEMENT tipo (#PCDATA)> <!ELEMENT data (#PCDATA)> <!ELEMENT cliente (nome, morada)> <!ATTLIST cliente id CDATA #IMPLIED nif CDATA #REQUIRED > <!ELEMENT vendedor (nome, morada)> <!ATTLIST vendedor id CDATA #IMPLIED > <!ELEMENT nome (#PCDATA)> <!ELEMENT morada (#PCDATA)> <!ELEMENT corpo (linha)*> <!ELEMENT linha (quantidade , artigo, comentario?)> <!ELEMENT quantidade (#PCDATA)> <!ELEMENT artigo (#PCDATA)> <!ATTLIST artigo id ID #REQUIRED preco CDATA #REQUIRED iva CDATA "19" disponivel (sim | nao) #IMPLIED > <!ELEMENT comentario ANY>
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ]&gt; &lt;documento&gt; &lt;cabecalho&gt; &lt;tipo&gt;Encomenda&lt;/tipo&gt; &lt;data&gt;&amp;hoje;&lt;/data&gt; &lt;cliente id=&quot;c123&quot; nif=&quot;123456789&quot;&gt; &lt;nome&gt;Fulaninho de tal&lt;/nome&gt; &lt;morada&gt;fulaninho.tal@dominio.net&lt;/morada&gt; &lt;/cliente&gt; &lt;/cabecalho&gt; &lt;corpo&gt; &lt;linha&gt; &lt;quantidade&gt;8&lt;/quantidade&gt; &lt;artigo id=&quot;a123&quot; preco=&quot;40&quot; iva=&quot;19&quot;&gt;Camisa&lt;/artigo&gt; &lt;/linha&gt; &lt;linha&gt; &lt;quantidade&gt;15&lt;/quantidade&gt; &lt;artigo id=&quot;a124&quot; preco=&quot;30&quot; iva=&quot;21&quot;&gt;Camisola&lt;/artigo&gt; &lt;/linha&gt; &lt;linha&gt; &lt;quantidade&gt;10&lt;/quantidade&gt; &lt;artigo id=&quot;a125&quot; preco=&quot;20&quot; iva=&quot;21&quot;&gt;Cala&lt;/artigo&gt; &lt;/linha&gt; &lt;linha&gt; &lt;quantidade&gt;25&lt;/quantidade&gt; &lt;artigo id=&quot;a126&quot; preco=&quot;30&quot; iva=&quot;19&quot;&gt;T-Shirt&lt;/artigo&gt; &lt;/linha&gt; &lt;linha&gt; &lt;quantidade&gt;12&lt;/quantidade&gt; &lt;artigo id=&quot;a127&quot; preco=&quot;20&quot; iva=&quot;21&quot;&gt;Casaco&lt;/artigo&gt; &lt;/linha&gt; &lt;/corpo&gt; &lt;/documento&gt;...
View Full Document

Page1 / 2

exemplo - ]&amp;amp;gt; &amp;amp;lt;documento&amp;amp;gt;...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online