XMLTools - Maple Programming Help

Home : Support : Online Help : Connectivity : Web Features : XMLTools : XMLTools/IsText

XMLTools

 IsText
 determine if an expression is an XML text data structure

 Calling Sequence IsText(expr)

Parameters

 expr - anything; expression to test

Description

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

Examples

 > $\mathrm{with}\left(\mathrm{XMLTools}\right):$
 > $\mathrm{IsText}\left(\mathrm{XMLElement}\left("a",\left["b"="c"\right],"d"\right)\right)$
 ${\mathrm{false}}$ (1)
 > $\mathrm{IsText}\left(\mathrm{XMLText}\left("God does arithmetic!"\right)\right)$
 ${\mathrm{true}}$ (2)