Basic HTML version of Foils prepared May 19 99

Foil 22 XML tag structure

From An Introduction to XML Basic Information Track Computational Science Course CPS616 -- Spring Semester 1999. by Nancy McCracken,Ozgur Balsoy, Tom Scavo


1 In XML terminology, a pair of start and end tags is an element.
2 XML documents allow only one root element.
3 XML documents must have a strict hierarchical structure.
  • All start tags must have an end tag.
  • Any element must be properly nested within another. <LI> XML requires <B><I>proper nesting</I></B>.</LI>
4 Empty tags are allowed as elements in XML documents.
  • An empty tag is a start and end tag together and is identified by a trailing / after the tag name. <LI>XML requires empty tags, such as <BR/>.</LI>
  • A start tag and end tag with nothing in-between can also be considered an empty tag. <IMG SRC="face.gif"></IMG>

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Wed May 19 1999