XML Flashcards
XML definition:
A markup language that is used to define rules for formatting documents in a way that is machine readable but is also highly readable by humans.
XML flexibility’s purpose :
XML allows the representation of arbitrary data structures which can be designed on the fly.
XML design purpose:
XML was designed to be a software and hardware-independent tool which can be used store and to transport data in a legible format.
The nature of tags in XML
tags are specified by the creator of the XML document to any standards they want to use.
How do we identify an XML Element?
Each opening tag, , has a matching closing tag, .
An XML document always forms a tree structure.
Sections can be embedded in others sections as shown.
XML attributes definition:
An attribute consists of a pair of terms separated by an equal sign.
XML attributes purpose:
supply extra information about the element they are associated with.
W3C specification for attibutes:
● cannot contain multiple values (elements can)
● cannot contain tree structures (elements can)
● are not easily expandable (for future changes)
XML: The current node
any arbitrary node that we choose. All other relationships derive from the current node. Each node can identify itself as self.
XML:A parent node
one level higher in the hierarchy than the node selected as current.
XML:A child node
always one level below its parent in the hierarchy.
XML:A sibling node
on the same level as the current node, under the same parent.
XML:An ancestor node
one in a direct path from the current node up through its parent, grandparent, great-grandparent, etc.
XML:A descendent node
is one in a direct path down from the current node in the hierarchy (i.e., a child, a child of a child, etc.)