ConvertFromXML - Maple Help

HelpTools[TableOfContents]

 ConvertFromXML

 Calling Sequence ConvertFromXML(path, language=language code, product=product name, category=category name)

Parameters

 path - string; path to a XML file or XML language - optional, string; ISO 639-1 language code, default is "en" language - optional, string; product name, default is "User Help" category - optional, string; category name, default is "Help Page"

Description

 • The ConvertFromXML command converts table of contents entries from XML format to a nested list of records, so that they can be stored in help database.
 • Encoding of XML file or XML string must be UTF-8.
 • An example of XML format:



 • Attributes of entry element

 Attribute Type Default Value Description text string, required none text of table of contents entry priority positive integer 0 priority of entry, entries with higher priority are displayed first topic string none help topic that is opened when entry is selected language string value of language parameter language of entry product string value of product parameter product of entry category string value of category parameter category of entry

Examples

 > $\mathrm{with}\left(\mathrm{HelpTools}\right):$$\mathrm{with}\left(\mathrm{TableOfContents}\right):$
 > xml := "                 ":
 > $\mathrm{ConvertFromXML}\left(\mathrm{xml}\right)$
 $\left[{\mathrm{Record}}{}\left({\mathrm{entry}}{=}{"What\text{'}s New"}{,}{\mathrm{topic}}{=}\left(\right){,}{\mathrm{priority}}{=}{55}{,}{\mathrm{language}}{=}{"en"}{,}{\mathrm{product}}{=}{"User Help"}{,}{\mathrm{category}}{=}{"Help Page"}{,}{\mathrm{children}}{=}\left[{\mathrm{Record}}{}\left({\mathrm{...}}\right){,}{\mathrm{Record}}{}\left({\mathrm{...}}\right)\right]\right)\right]$ (1)

Compatibility

 • The HelpTools[TableOfContents][ConvertFromXML] command was introduced in Maple 18.
 • For more information on Maple 18 changes, see Updates in Maple 18.