use-revolution digest, Vol 1 #1358 - 15 msgs

Tuviah M Snyder diskot123 at juno.com
Thu May 15 01:59:01 CDT 2003


 >uppose you are using revXML and you have a reference to a node
>"/opml/body/outline[2]/outline[23]" 
>Suppose also that at that point you don't know for sure it's an 
>"outline" entity. How can you query a node to find out it's entity 
>name, without doing something like matchText(tNode, "outline")?
OK will add revXMLName for 2.1. In the meantime it should be easy to
write a function which does this

function revXMLName tNode
        set the itemdelimiter to "/"
        put last item of tNode into tName
        set the itemdelimiter to "[" 
        return item 1 of tName
end revXMLName

Tuviah Snyder <tuviah at runrev.com> <http://www.runrev.com/>
Runtime Revolution Limited - Software at the Speed of Thought



More information about the use-livecode mailing list