RXml(xml:Str, args:Str...):RichText

Create rich text string from XML. Parses the xml string. Tags are converted into rich text attributes. Entity references of the form &<digits>; are replaced by the respective element from args, where the first element is &0;.

For example,

  RXml("<font color='&0;'>This is <b>&1;</b></font>", "red", "great")

produces This is great.

In text mode, this function uses a simpler XML parser, and returns a plain string, as rich text attributes have no meaning to the text mode applications.

TODO: document the styles

Since: PCC2 1.99.21

See also: RStyle, RLink