---
title: "What is an empty XML element?"
date: 2013-02-11
description: "Following a very enthusiastic discussion today at work, here’s the proper definition of an empty XML element, according to the W3C Recommendation of 26 November 2008:\n[Definition: An element with no …"
---


Following a very enthusiastic discussion today at [work](https://cloudwork.com/ "CloudWork"), here's the proper definition of an empty [XML](http://www.w3.org/TR/xml/ "XML") element, according to the W3C Recommendation of 26 November 2008:

> [Definition: An element with no content is said to be empty.] The representation of an empty element is either a start-tag immediately followed by an end-tag, or an empty-element tag. -- [Extensible Markup Language (XML) 1.0 (Fifth Edition)](http://www.w3.org/TR/xml/ "Extensible Markup Language (XML) 1.0 (Fifth Edition)") § ["Content of Elements"](http://www.w3.org/TR/xml/#dt-content "Content of Elements")

[it's curious that this discussion came up one day after [XML's 15th birthday](https://www.tbray.org/ongoing/When/201x/2013/02/10/XML-at-15 "XML's 15th birthday")]
