XML Tutorials - Herong's Tutorial Notes
Dr. Herong Yang, Version 4.00

XML File Syntax

This chapter provides notes and tutorial examples on XML file syntax. Topics include types of information in XML file; syntax rules of XML file; 'xml' processing instruction; a simple XML sample file.

Types of Information in XML Files

XML File Syntax Rules

The <?xml ...?> Processing Instruction

dictionary.xml - A Simple XML Sample File

Conclusion:

  • 6 types of information in an XML file: Processing Instruction, Comment, XML Element, Mixed Text, XML Entity, and CDATA Section.
  • XML syntax is very simple. There are only 6 basic rules for XML files.
  • The "xml" processing instruction with the "version" attribute is required for every XML file.

Table of Contents

 About This Book

 Introduction of XML (eXtensible Markup Language)

XML File Syntax

 XML File Browsers

 DOM (Document Object Model) Programming Interface

 SAX (Simple API for XML) Programming Interface

 DTD (Document Type Definition) Introduction

 Syntaxes of DTD Statements

 Validating an XML Document against the Specified DTD Document Type

 XSD (XML Schema Definition) Introduction

 Syntaxes of XSD Statements

 Validating an XML Document against the Specified XML Schema

 XSL (Extensible Stylesheet Language) Introduction

 XSLT (XSL Transformations) Introduction

 Java Implementation of XSLT

 XPath (XML Path) Language

 XSLT Elements as Programming Statements

 Control and Generate XML Element in the Result

 References

 Printable Copy - PDF Version

Dr. Herong Yang, updated in 2009
XML File Syntax