April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD...

Preview:

Citation preview

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1

Módulo II Introdução a XML DTD

Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 2

Ementa

Modulo II – XML DTD XML Validação

DTD DTD x XMLSchema

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 3

Linguagem de Programação JAVA Ismael H. F. Santos, Apostila UniverCidade, 2002

Bibliografia

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 4

Livros

Core Java 2, Cay S. Horstmann, Gary Cornell Volume 1 (Fundamentos) Volume 2 (Características Avançadas)

Java: Como Programar, Deitel & Deitel Thinking in Patterns with JAVA, Bruce Eckel

Gratuito. http://www.mindview.net/Books/TIJ/

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 5

DTD

SOA

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 6

DTD Externo SYSTEM

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 7

DTD Publico

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 8

DTD Interno

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 9

DTD Incompleto

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 10

DTD exemplo

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 11

<!ELEMENT> e #PCDATA

PCDATA - Parsed Character Data Elemento pode conter texto Não pode conter elementos

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 12

Seqüências de Elementos-filho

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 13

Seleção de um Elemento-filho

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 14

Conteúdo Misto

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 15

Elementos Vazios e Any

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 16

<!ATTLIST>

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 17

Exemplos

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 18

Tipos de Dados XML

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 19

CDATA e NMTOKEN

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 20

Seleção

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 21

ID

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 22

IDREF

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 23

IDREFS

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 24

Valores Default

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 25

<!NOTATION> e tipo NOTATION

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 26

<!ENTITY>

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 27

Entidades gerais internas

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 28

Entidades gerais externas

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 29

Entidades externas não processadas

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 30

Entidades de parâmetro

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 31

Entidades de parâmetro externas

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 32

Condicionais

April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 33

Utilidades dos Condicionais

Recommended