Skip to content
XML

Attributes

Name-value pairs on elements.

#attribute#element

Code

xml
<?xml version="1.0"?>
<contact id="c100" active="true">
  <name lang="en" type="full">Alice Smith</name>
  <phone type="mobile" primary="true">+1-555-0100</phone>
  <phone type="home">+1-555-0199</phone>
  <note priority='high'>Values must be quoted with single or double quotes</note>
</contact>