XMLTools
CleanEntities
remove _XML_Entity in favor of encoded text
Calling Sequence
Parameters
Description
Examples
Compatibility
CleanEntities(xmlTree)
xmlTree
-
Maple XML tree; XML element
The CleanEntities(expr) command returns an equivalent xmlTree with the _XML_Entity elements removed and replaced with encoded text. If no entity conversion is found, the _XML_Entity will still be replaced, but with an unconverted string.
with⁡XMLTools:
xml≔ParseString⁡<tag>Capital Π is different than π</tag>
xml≔_XML_Document⁡_XML_Element⁡_XML_ElementType⁡tag,,_XML_Text⁡Capital ,_XML_Entity⁡Pi,_XML_Text⁡ is different than ,_XML_Entity⁡pi
CleanEntities⁡xml
_XML_Document⁡_XML_Element⁡_XML_ElementType⁡tag,,_XML_Text⁡Capital Π is different than π
xml≔ParseString⁡<tag>The number 쾀 is approximately 3.14</tag>
xml≔_XML_Document⁡_XML_Element⁡_XML_ElementType⁡tag,,_XML_Text⁡The number ,_XML_Entity⁡#xcf80,_XML_Text⁡ is approximately 3.14
_XML_Document⁡_XML_Element⁡_XML_ElementType⁡tag,,_XML_Text⁡The number π is approximately 3.14
The XMLTools[CleanEntities] command was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
See Also
XMLTools[XMLEntity]
Download Help Document