Searching for a tag name in XML
andre at andregarzia.com
Wed Apr 22 18:13:34 EDT 2009
RevXMLGetNamedChildren might help you!
On Tue, Apr 21, 2009 at 12:20 PM, 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)
> but given that it may or may not have such parameters:
> put revXMLMatchingNode (treeID, pStartNode, "table", "", "", -1) into
> 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://www.andregarzia.com All We Do Is Code.
More information about the use-livecode