PPT Slide
Structure of XML documents
- XML applies to the structure of documents
- A structure is the way that we put a skeleton behind information, so that the pieces work together as a whole
- You define the elements of a document using any word processor, this can then be ported to another word processor where the structure will remain intact. This structure can be thought of as a tree, or a pyramid and is called a document tree.
- The most important thing to remember is that a structured document is defined by the elements it contains, not by how it looks. For example :
- Structure says that an element is a paragraph
Format says to display the paragraph in 12 point Times
- Structure sys the element is a book title
Format says to display the book title in green bold body text
- Structure says the element is a social security number
Format says to hide and not display the social security number
- Learning to separate structure from format is critical in making good use of XML.
<Title>Java Design Patterns</Title>
<Author>J.W.Cooper dob”1952”</Author>