(no subject)
(no subject)
- Subject: (no subject)
- From: technology <email@hidden>
- Date: Thu, 22 Sep 2005 22:12:53 +1200
Hi there:
I got "Internal table overflow" and "stack overflow" error when I am
trying to use XML parser tools. Please advise!
Thank you!
repeat from 1 to 100 -- parse 100 xml files
set xmlresult to parse XML myxml SAX handler SAXHandler
end repeat
script SAXHandler
property clientName : ""
property keyword : ""
property mydata : ""
property link : ""
property title : ""
on XMLStartElement(elementName, elementAttributes)
set mytag to elementName
set mydata to ""
end XMLStartElement
on XMLEndElement(elementName)
if elementName = "clientName" then set clientName to mydata
if elementName = "keyword" then set keyword to mydata
if elementName = "link" then set link to mydata
if elementName = "title" then set title to mydata
end XMLEndElement
on XMLCharacterData(xmlData)
set mydata to mydata & xmlData
end XMLCharacterData
end script
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden