Você está na página 1de 5

XML document structure and syntax

www.satyam.com

Satyam Learning World

Objectives
Structure of XML document Syntax used in XML document

www.satyam.com

Satyam Learning World

Introduction
XML document structure is divided into different parts, starts with XML declaration, parent element (root), child element and text of all elements.

Different syntax used in XML document like empty elements, entity reference and special characters

www.satyam.com

Satyam Learning World

XML Document Parts


An XML document consists of three parts, in the order given: An XML declaration (which is technically optional, but recommended in most normal cases) A document type declaration that refers to a DTD (which is optional, but required for validation) A body or document instance (which is required)

www.satyam.com

Satyam Learning World

Practice Scenario
Create a XML document for student data and use different syntax and also use one empty element which is useful in validation in DTD.

www.satyam.com

Satyam Learning World

Você também pode gostar