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.
withXMLTools:
xml≔ParseString<tag>Capital Π is different than π</tag>
xml≔_XML_Document_XML_Element_XML_ElementTypetag,,_XML_TextCapital ,_XML_EntityPi,_XML_Text is different than ,_XML_Entitypi
CleanEntitiesxml
_XML_Document_XML_Element_XML_ElementTypetag,,_XML_TextCapital Π is different than π
xml≔ParseString<tag>The number 쾀 is approximately 3.14</tag>
xml≔_XML_Document_XML_Element_XML_ElementTypetag,,_XML_TextThe number ,_XML_Entity#xcf80,_XML_Text is approximately 3.14
_XML_Document_XML_Element_XML_ElementTypetag,,_XML_TextThe 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