Searching for a tag name in XML

Andre Garzia andre at
Wed Apr 22 18:13:34 EDT 2009

Hello David,
RevXMLGetNamedChildren might help you!


On Tue, Apr 21, 2009 at 12:20 PM, David Bovill <david at>wrote:

> Looks like there is no easy way to search for an XML node? I want to search
> for a "<table>" element in xHTML. I can pull it out by looking for a
> particular value for the param - say border:
> put revXMLMatchingNode (treeID, pStartNode, "table", "border", "2", -1)
> into
> foundNode
> but given that it may or may not have such parameters:
> put revXMLMatchingNode (treeID, pStartNode, "table", "", "", -1) into
> foundNode
> does not find anything.
> I can of course use built in rev commands to find the tag - but then it is
> not so easy to find the nodes path in the XML tree so I can pull out the
> entire table reliably from the xHTML.
> Is there any way to do this?
> _______________________________________________
> use-revolution mailing list
> use-revolution at
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:

-- All We Do Is Code.

More information about the use-livecode mailing list