Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to main content

XML Attribute

  • Reference work entry
Encyclopedia of Database Systems
  • 56 Accesses

Synonyms

XML attribute; XML attribute node

Definition

An XML attribute is used to represent additional information on an XML element in the W3C XML recommendation [2].

Key Points

The name of an XML attribute has to be unique for a given element. Therefore, the following XML element is not allowed

<e a1 = “v1” a1 = “v2”/>

while the following is well-formed

<e1 a1 = “v1”> <e2 a1 = “v2”/> </e1>

An XML attribute has a value that follows the attribute value normalization rules outlined in section 3.3.3 of [2]. This means that several whitespace characters do not get preserved in attribute values, unless they are explicitly represented with a character entity (e.g., for carriage return).

Attributes can be constrained and typed by schema languages such as XML DTDs [2] or XML Schema [3].

An XML attribute is represented as an XML attribute information item in the XML Information Set [1] and an XML attribute node in the XPath and XQuery data model [4].

Cross-references

XML

XML Document...

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 2,500.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Recommended Reading

  1. XML 1.0 Information Set, latest edition available online at: http://www.w3.org/TR/xml-infoset.

  2. XML 1.0 Recommendation, latest edition available online at: http://www.w3.org/TR/xml.

  3. XML Schema Part 0: Primer, latest edition available online at: http://www.w3.org/TR/xmlschema-0/.

  4. XQuery 1.0 and XPath 2.0 Data Model (XDM), latest edition available online at: http://www.w3.org/TR/xpath-datamodel/.

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2009 Springer Science+Business Media, LLC

About this entry

Cite this entry

Rys, M. (2009). XML Attribute. In: LIU, L., ÖZSU, M.T. (eds) Encyclopedia of Database Systems. Springer, Boston, MA. https://doi.org/10.1007/978-0-387-39940-9_796

Download citation

Publish with us

Policies and ethics