diff --git a/ndiff/docs/ndiff.xml b/ndiff/docs/ndiff.xml
index f738d4e0d..a3461037c 100644
--- a/ndiff/docs/ndiff.xml
+++ b/ndiff/docs/ndiff.xml
@@ -131,6 +131,34 @@
Ndiff text output
+
+
+
+
+ XML output, intended to be processed by other programs, is selected
+ with the option. It is based on Nmap's XML
+ output, with a few additional elements to indicate differences. The
+ XML document is enclosed in nmapdiff and
+ scandiff elements. Host differences are enclosed
+ in hostdiff tags and port differences are
+ enclosed in portdiff tags. Inside a
+ hostdiff or portdiff,
+ a and b tags show the state of
+ the host or port in the first scan (a) or the
+ second scan (b).
+
+
+
+ shows the XML diff of the
+ same scans shown above in
+ .
+
+
+
+ Ndiff XML output
+
+