Comment nodes

A comment node encapsulates an XML comment.

A comment node can have zero or one parent. The content of a comment node cannot include the string "--" (two hyphens) or contain the hyphen character ( - ) as the last character.

A comment node has the following node properties:

  • content
  • parent, possibly empty

Comment nodes can be constructed in XQuery expressions by using direct or computed constructors.