Was this page helpful?

Xml.Name

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Parameters
    3. 3. Result
    4. 4. Samples
    xml.Name(doc : xml) : string
    

    Get the name of the root node in the XML document.

    Usage Restrictions

    1.9.1 or later

    Parameters

    Name Type Description
    doc xml XML document

      

    Result

    The name of the xml document's root node.

    Samples

       Output

    get the xml document root node:

    {{ xml.name(web.xml("<ul><li>Test</li></ul>")) }} 

      

    ul
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by