IsComment - Maple Help

XMLTools

 IsComment
 determine if an expression is an XML comment data structure

 Calling Sequence IsComment(expr)

Parameters

 expr - anything; expression to test

Description

 • The IsComment(expr) command tests whether a Maple expression expr is an XML comment data structure. If expr is an XML comment data structure, the value true is returned.  Otherwise, false is returned.
 Such expressions can be encountered in XML documents that are read from external sources, or can be generated programmatically by using the XMLTools[XMLComment] constructor.

Examples

 > $\mathrm{with}\left(\mathrm{XMLTools}\right):$
 > $\mathrm{IsComment}\left(\mathrm{XMLElement}\left("a",\left["b"="c"\right],"d","e"\right)\right)$
 ${\mathrm{false}}$ (1)
 > $\mathrm{IsComment}\left(\mathrm{XMLComment}\left("Some comment text"\right)\right)$
 ${\mathrm{true}}$ (2)