Document comments

Document comments

DOCX The <comment> element stores a document comment. Document comments are used to round-trip comments between DOCX and CXML formats.

New in CXML 3.4

<comment> is a new element in CXML 3.4.

<comment> has five attributes:

AttributeValueDescription
idstringThe unique ID of the comment.
initialsstringThe initials of the comment author.
statusadded
changed
deleted
Indicates the modification status of the comment.
authorstringThe author of the comment.
dateTimeISO 8601 datetime stringThe date and time of the comment (2024-01-09T14:37:00Z).

<comment> must contain at least one child element. It can contain any content that can appear inside a <section>, including paragraphs, lists, and tables.

A simple document comment:

xml
<p>
  We are the knights who say
  <comment>
    <p>Should this be "Ni" or "Nee"?</p>
  </comment>
  Ni!
</p>

A document comment with tracked changes:

xml
<p>
  It's just a flesh wound.
  <comment id="C123" initials="JC" author="John Cleese" dateTime="1975-04-05T09:00:00Z" status="added">
    <p type="Comment Title">Continuity error</p>
    <p type="Comment Body">The Black Knight has lost both arms at this point. See <c type="Scene_Ref">Holy Grail, Act 2</c></p>
  </comment>
</p>
Last updated: 27 Apr 2026, 18:30:36
Loading navigation...