IsCData - Maple Help

XMLTools

 IsCData
 determine if an expression is an XML CDATA data structure

 Calling Sequence IsCData(expr)

Parameters

 expr - anything; expression to test

Description

 • The IsCData(expr) command tests whether a Maple expression expr is an XML CDATA data structure. If expr is an XML CDATA 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[XMLCData] constructor.

Examples

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