The XML command I use mostly is sometimes referred to as XPath. In Livecode it is: revXMLNodeContents(3,"/Book/Chapter/Section”)
What this is is the direct address in the XML tree of the node data you are looking for. In this case /Book/Chapter/Section gives me the node data for Section, inside Chapter, inside Book. Think of this as a absolute file path. When your XML contains a set of data, you’ll need to use other commands to grab all the data in the set. But if your XML has a bunch of unique elements, you can specify the exact one you need using the NodeContents function. Cheers, Kee Nethery > On Mar 13, 2015, at 10:25 PM, William Prothero <[email protected]> > wrote: > > Thanks, > I’ll give it a whack. > Bill > >> On Mar 13, 2015, at 1:07 PM, Michael Doub <[email protected]> wrote: >> >> I had never heard of kml, so I poked around a bit and found some samples at >> https://developers.google.com/kml/documentation/kml_tut. It looks like >> it is a specific format of xml. >> >> convertXMLToArray seems to work, but you are still going to have to look >> closely at the array structure that is specific to kml. Hope this helps >> you get started. >> >> -= Mike >> >> >> >> >> >> On 3/13/15 2:58 PM, William Prothero wrote: >>> I’m about to build a parse to retrieve country outline data from a KML >>> file. This seems straightforward, but just wondering if there is a handler >>> posted someplace for this. Basically, I’ll parse out the lat/lon outlines, >>> then render it onto a map using my own methods. >>> >>> If there is none, then I’ll be glad to share what I come up with. >>> >>> Best, >>> Bill >>> >>> >>> >>> William A. Prothero >>> http://es.earthednet.org/ >>> >>> _______________________________________________ >>> 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 >> >> >> _______________________________________________ >> 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 > > > _______________________________________________ > 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 _______________________________________________ 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
