Searching for a tag name in XML

Terry Judd tsj at unimelb.edu.au
Tue Apr 21 17:51:18 EDT 2009


I usually forget revXML and just use replace, itemOffset etc. to parse
XHTML.

Terry...


On 22/04/09 1:20 AM, "David Bovill" <david at vaudevillecourt.tv> 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 lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list