Greetings,
I have been given several medium sized 3-5MB text files with lots of
xml tags that I need to parse into human readable, formatted text. Are
there any ways to deal with this 'automatically' or do I need to
interpret each tag with an equivalent format in LC? Any pointers for
accomplishing
Ron,
If your files are XML files you should use RevXML routines to parse them.
The user guide has a section on RevXML if I remember correctly. The
dictionary can also be used if you select the library section and choose
XML.
LiveCode has a lot of XML goodness in it. =)
Although not about XML
Shows was a little too close to the URL. :)
This works:
http://revmedia.runrev.com/developers/lessons-and-tutorials/tutorials/intermediate-rss-feeds/http://revmedia.runrev.com/developers/lessons-and-tutorials/tutorials/intermediate-rss-feeds/shows
~Roger
On Fri, May 25, 2012 at 10:36 AM,
There is also a lesson on reading XML files ar
http://lessons.runrev.com/s/lessons/m/4071/l/7011-how-to-read-in-data-from-an-xml-file
Peter
On 25 May 2012, at 22:36, Andre Garzia wrote:
Ron,
If your files are XML files you should use RevXML routines to parse them.
The user guide has a
Thanks Andre, Roger and Peter,
lots of good resources that I'll work with.
Thanks
Ron
ps - don't know why I had the old address...
Ron,
If your files are XML files you should use RevXML routines to parse them.
The user guide has a section on RevXML if I remember correctly. The
dictionary
ron-
I'd go with what Andre said, but with the caveat that xml was never
meant to be a human-readable format.
--
-Mark Wieder
mwie...@ahsoftware.net
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe,
I'd say, don't use the revxml functions, but go with the itemdel linedel
approach:
- only if this is a one time job, or the files are made by a stable source
(not accepting _any_ xml or error prone sources)
- Don't use a fuckton of the weirder type of data containers
- You have smalish data
I will show the list my secret shame of Invented Anywhere But Here
syndrome (the opposite of NIH).
Trevor has provided some handlers that convert xml data to LC arrays.
By miles it is the easiest way to explore the structure of a XML
document, and once one is familiar with the structure through