Namespace cwi.smilText.Parser
Hold all smilText parsing functionalities.
Defined in: cwi.smilText.js.
Method Summary
parseHTML()
Parse the html source in order to find smilText tags, and render them into the respective enclosing regions.
Method Detail
cwi.smilText.Parser.parseHTML()
: Array[cwi.smilText.STDocument]
Parse the html source in order to find smilText tags, and render them
into the respective enclosing regions.
Returns:
{Array[cwi.smilText.STDocument]} |
See:
cwi.smilText.STDocument |
cwi.smilText.Parser.parseFile(xmlFile, region)
: cwi.smilText.STDocument
Parse a smilText file and return a smilText object.
Parameters:
{string} | xmlFile | The path of the file containing the smilText specification. |
{string} | region | The id of the rendering region. |
Returns:
{cwi.smilText.STDocument} |
See:
cwi.smilText.STDocument |
cwi.smilText.Parser.parseString(xmlStr, region)
: cwi.smilText.STDocument
Parse an XML string and return a smilText object.
Parameters:
{string} | xmlStr | The smilText string. |
{string} | region | The id of the rendering region. |
Returns:
{cwi.smilText.STDocument} |
See:
cwi.smilText.STDocument |
cwi.smilText.Parser.parseHTMLElement(element, region)
: cwi.smilText.STDocument
Parse a HMTL element and return a smilText object.
Parameters:
{string} | element | The HTML element containing the smilText specification. |
{string} | region | The id of the rendering region. |
Returns:
{cwi.smilText.STDocument} |
See:
cwi.smilText.STDocument |