DTD

Friday, 6 July 2012

An Internal Entity Declaration


An Internal Entity Declaration

Syntax

<!ENTITY entity-name "entity-value">

Example


DTD Example:

<!ENTITY writer "Donald Duck.">
<!ENTITY copyright "Copyright W3Schools.">

XML example:

<author>&writer;&copyright;</author>

HINT: An entity has three parts: an ampersand (&), an entity name, and a semicolon (;).


Posted by Unknown at 08:44
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

TOPICS

  • ▼  2012 (34)
    • ▼  July (34)
      • EMBEDDED IMAGES
      • FPI
      • MUST READ
      • DTD Validation
      • Turn Validation Off
      • An Internal Entity Declaration
      • An External Entity Declaration
      • Use of Elements vs. Attributes
      • Declaring Attributes
      • A Default Attribute Value
      • #REQUIRED
      • #IMPLIED
      • #FIXED
      • Enumerated Attribute Values
      • Empty Elements
      • Declaring Elements
      • Elements with Parsed Character Data
      • Elements with any Contents
      • Elements with Children (sequences)
      • Declaring Only One Occurrence of an Element
      • Declaring Minimum One Occurrence of an Element
      • Declaring Zero or More Occurrences of an Element
      • Declaring either/or Content
      • DECLARING MIXED CONTENT
      • The Building Blocks of XML Documents
      • ELEMENTS
      • ATTRIBUTES
      • ENTITIES
      • PCDATA
      • CDATA
      • WHY
      • External DTD Declaration
      • Internal DTD Declaration
      • PURPOSE

About Me

Unknown
View my complete profile
Powered by Blogger.