Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


XML Document Structure

March 29, 2002


The XML Recommendation states that an XML document has both logical and physical structure. Physically, it is comprised of storage units called entities, each of which may refer to other entities, similar to the way that include works in the C language. Logically, an XML document consists of declarations, elements, com-ments, character references, and processing instructions, collectively known as the markup.

Note:

    Although throughout this book we refer to an "XML document", it
    is crucial to understand that XML may not exist as a physical
    file on disk. XML is used to convey messages between
    applications, such as from a Web server to a client. The XML
    content may be generated on the fly, for example by a Java
    application that accesses a database. It may be formed by
    combining pieces of several files, possibly mixed with output
    from a program. However, in all cases, the basic structure and
    syntax of XML is invariant.

    An XML document consists of three parts, in the order given:
  1. an XML declaration (which is technically optional, but recommended in most normal cases)
  2. a document type declaration that refers to a DTD (which is optional, but required if you want validation)
  3. a body or document instance (which is required).

Collectively, the XML declaration and the document type declaration are called the XML prolog.

Elements, Tags, Attributes and Content
XML Family of Specifications: A Practical Guide
XML Declaration


Up to => Home / Authoring / Languages / XML / XMLFamily / XMLSyntax




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers