Synonyms
Definition
An XML element is a markup element in the W3C XML recommendation [3] that consists of a beginning markup tag and an end tag with optional content and optional attributes.
Key Points
An XML element is a markup element in the W3C XML recommendation [3] that consists of a beginning markup tag and an end tag.
It has to have balanced begin- and end-tags as in this example
<element>content</element>.
XML elements can be nested as in
<e1>some optional text <e2>nested element</e2> some optional text</e1>
They can have XML attributes as in
<element attribute=“value”>content</element>
And they can be empty, meaning have no content as in
<element/>.
The structure of elements is free within the grammatical rules of [3], but elements can be constrained and typed by schema languages such as XML DTDs [3] or XML Schema [1].
An XML element is represented as an XML element information item in the XML Information Set [2] and an XML element node in the XPath and XQuery...
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsRecommended Reading
Schema Part 0: Primer, latest edition available online at: http://www.w3.org/TR/xmlschema-0/.
XML 1.0 Information Set, latest edition available online at: http://www.w3.org/TR/xml-infoset.
XML 1.0 Recommendation, latest edition available online at: http://www.w3.org/TR/xml.
XQuery 1.0 and XPath 2.0 Data Model (XDM), latest edition available online at: http://www.w3.org/TR/xpath-datamodel/.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2009 Springer Science+Business Media, LLC
About this entry
Cite this entry
Rys, M. (2009). XML Element. In: LIU, L., ÖZSU, M.T. (eds) Encyclopedia of Database Systems. Springer, Boston, MA. https://doi.org/10.1007/978-0-387-39940-9_795
Download citation
DOI: https://doi.org/10.1007/978-0-387-39940-9_795
Publisher Name: Springer, Boston, MA
Print ISBN: 978-0-387-35544-3
Online ISBN: 978-0-387-39940-9
eBook Packages: Computer ScienceReference Module Computer Science and Engineering