• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
(no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(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


  • Prev by Date: Re: number
  • Next by Date: Re: Applescript-users Digest, Vol 2, Issue 621
  • Previous by thread: (no subject)
  • Next by thread: How to save a QuickTime 7 reference movie?
  • Index(es):
    • Date
    • Thread