• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 25. XML > Key parts of a DTD

Key parts of a DTD

The DTD references a root element, which is the overall keyword that categorizes all the data to be contained in the XML elements. Technically, the XML file will specify the root element, but for clarity, the DTD should reference a root element in an opening comment.

Parent and child elements

  • Declaring an element as a container element makes it a parent and determines which elements are nested within it (its children).

  • The XML Tree on the XML Workspace palette represents element relationships as defined in the DTD. On the XML Tree, a parent element occupies a higher position (is less indented), and each child element is nested below its parent .

    The XML Tree, showing three types of elements

  • Sibling elements reside on the same indent level on the tree.

  • The topmost element on the tree is usually the root element. All elements that are declared within this element in the DTD will occupy the next level on the tree.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint