diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index 9cf0f123bc..06181b1ba9 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -947,7 +947,7 @@
<devices>
<disk type='file' snapshot='external'>
<driver name="tap" type="aio" cache="default"/>
- <source file='/var/lib/xen/images/fv0'/ startupPolicy='optional'>
+ <source file='/var/lib/xen/images/fv0'/ startupPolicy='optional'/>
<target dev='hda' bus='ide'/>
<iotune>
<total_bytes_sec>10000000</total_bytes_sec>
@@ -2980,7 +2980,7 @@ qemu-kvm -net nic,model=? /dev/null
...
<devices>
<console type='stdio'>
- <target port='1'>
+ <target port='1'/>
</console>
</devices>
...