Dave-
Tuesday, August 5, 2014, 7:39:06 AM, you wrote:
> There may be a better way, but using revXMLChildNames allows you
> get the child names with the index appended (e.g. name[1], name[2],
> etc.)
You can also step through them with revXMLFirstChild and
revXMLNextSibling.
put field 1 into tData //source of xml text
put revXMLCreateTree(tData,true,true,false) into tID
put revXMLFirstChild(tID, "person/aliases") into tChild
breakpoint
if tChild is not empty then
repeat until tChild is empty
-- now you are pointing to a child node
-- do something with the tChild contents
put revXMLNextSibling(tID, tChild) into tChild
end repeat
end if
--
-Mark Wieder
[email protected]
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not
consent to the retrieving or storing of this communication and any
related metadata, as well as printing, copying, re-transmitting,
disseminating, or otherwise using it. If you believe you have received
this communication in error, please delete it immediately.
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode