0% found this document useful (0 votes)
60 views

XML Document Structure and Syntax: Satyam Learning World

This document discusses the structure and syntax of XML documents. It explains that an XML document includes an optional XML declaration, optional document type declaration, and required document body. It also covers empty elements, entity references, and special characters used in XML syntax. The document concludes by providing a practice scenario to create an XML student data document using different syntax, including an empty element.

Uploaded by

vedavyas4fun
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views

XML Document Structure and Syntax: Satyam Learning World

This document discusses the structure and syntax of XML documents. It explains that an XML document includes an optional XML declaration, optional document type declaration, and required document body. It also covers empty elements, entity references, and special characters used in XML syntax. The document concludes by providing a practice scenario to create an XML student data document using different syntax, including an empty element.

Uploaded by

vedavyas4fun
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 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

You might also like