<comment> (Comment Content)

This element specifies the content of a single comment stored in the Comments part of a WordprocessingML document.

If a comment is not referenced by document content via a matching @id attribute on a valid use of the <commentReference> element (§2.13.4.5), then it may be ignored when loading the document. If more than one comment shares the same value for the @id attribute, then only one comment shall be loaded and the others may be ignored.

example:

This comment is represented as the following WordprocessingML fragment:

<w:comment w:id="1" w:initials="User"></w:comment>

The <comment> element specifies the presence of a single comment within the comments part. ]

Parent Elements

<comments>2.13.4.6)

Child Elements

Subclause

<altChunk> (Anchor for Imported External Content)

§2.17.3.1

<bookmarkEnd> (Bookmark End)

§2.13.6.1

<bookmarkStart> (Bookmark Start)

§2.13.6.2

<commentRangeEnd> (Comment Anchor Range End)

§2.13.4.3

<commentRangeStart> (Comment Anchor Range Start)

§2.13.4.4

<customXml> (Block-Level Custom XML Element)

§2.5.1.6

<customXmlDelRangeEnd> (Custom XML Markup Deletion End)

§2.13.5.4

<customXmlDelRangeStart> (Custom XML Markup Deletion Start)

§2.13.5.5

<customXmlInsRangeEnd> (Custom XML Markup Insertion End)

§2.13.5.6

<customXmlInsRangeStart> (Custom XML Markup Insertion Start)

§2.13.5.7

<customXmlMoveFromRangeEnd> (Custom XML Markup Move Source End)

§2.13.5.8

<customXmlMoveFromRangeStart> (Custom XML Markup Move Source Start)

§2.13.5.9

<customXmlMoveToRangeEnd> (Custom XML Markup Move Destination Location End)

§2.13.5.10

<customXmlMoveToRangeStart> (Custom XML Markup Move Destination Location Start)

§2.13.5.11

<del> (Deleted Run Content)

§2.13.5.12

<ins> (Inserted Run Content)

§2.13.5.20

<moveFrom> (Move Source Run Content)

§2.13.5.21

<moveFromRangeEnd> (Move Source Location Container - End)

§2.13.5.23

<moveFromRangeStart> (Move Source Location Container - Start)

§2.13.5.24

<moveTo> (Move Destination Run Content)

§2.13.5.26

<moveToRangeEnd> (Move Destination Location Container - End)

§2.13.5.27

<moveToRangeStart> (Move Destination Location Container - Start)

§2.13.5.28

<oMath> (Office Math)

§7.1.2.77

<oMathPara> (Math Paragraph)

§7.1.2.78

<p> (Paragraph)

§2.3.1.22

<permEnd> (Range Permission End)

§2.13.7.1

<permStart> (Range Permission Start)

§2.13.7.2

<proofErr> (Proofing Error Anchor)

§2.13.8.1

<sdt> (Block-Level Structured Document Tag)

§2.5.2.30

<tbl> (Table)

§2.4.36

Attributes

Description

<author> (Annotation Author)

Specifies the author for an annotation within a WordprocessingML document.

If this attribute is omitted, then no author shall be associated with the parent annotation type.

<w:… w:id="1" w:author="Example Author"></w:…>

The <author> attribute specifies that the author of the current annotation is Example Author, which may be used as desired. ]

The possible values for this attribute are defined by the ST_String simple type (§2.18.89).

<date> (Annotation Date)

Specifies the date information for an annotation within a WordprocessingML document. The use of this information is outside of the scope of this Office Open XML Standard.

If this attribute is omitted, then no date information shall be associated with the parent annotation type.

<w:… w:id="1" w:date="2006-01-01T10:00:00"></w:…>

The <date> attribute specifies that the date of the current annotation is January 1st 2006 at 10:00 AM, which may be used as desired. ]

The possible values for this attribute are defined by the ST_DateTime simple type (§2.18.15).

<id> (Annotation Identifier)

Specifies a unique identifier for an annotation within a WordprocessingML document. The restrictions on the @id attribute, if any, are defined by the parent XML element.

If this attribute is omitted, then the document is non-conformant.

<w:… w:id="1"  ></w:…>

The <id> attribute specifies that the ID of the current annotation is 1. This value is used to uniquely identify this annotation within the document content. ]

The possible values for this attribute are defined by the ST_DecimalNumber simple type (§2.18.16).

<initials> (Initials of Comment Author)

Specifies the initials of the author of the current comment. This information may be used to format and present the associated comment information block (§2.13.4.1), or in any user interface supported by an application.

If this attribute is omitted, then no author shall be associated with the current comment in the document.

<w:comment w:id="1" w:initials="KB"></w:comment>

The <intials> attribute specifies that the initials of the author of the current comment are KB, which may be used as desired. ]

The possible values for this attribute are defined by the ST_String simple type (§2.18.89).

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_Comment">
	<complexContent>
	<extension base="CT_TrackChange">
	<sequence>
	<group ref="EG_BlockLevelElts" minOccurs="0" maxOccurs="unbounded"/>
	</sequence>
	<attribute name="initials" type="ST_String" use="optional"/>
	</extension>
	</complexContent>
</complexType>