System Events XML Suite - how to add / delete elements and attributes?
System Events XML Suite - how to add / delete elements and attributes?
- Subject: System Events XML Suite - how to add / delete elements and attributes?
- From: Richard Rönnbäck <email@hidden>
- Date: Mon, 21 Jul 2008 20:04:39 +0200
- Thread-topic: System Events XML Suite - how to add / delete elements and attributes?
Title: System Events XML Suite - how to add / delete elements and attributes?
I have spent the last on trying to find some example of how to Edit XML with System Event's XML Suite, to no avail. I am aware of the Excellent XML tools from Satimage and LateNightSoftware, but unfortunately I can't use them for the current project
So far this is about what I have managed to find (through Google), in terms of creating something at all:
set myResult to do shell script "curl 'http://galacticaa.net/widget/feed.php? ts=1171327909000&v=2.1'"
tell application "System Events"
set myData to make new XML data with properties {text:myResult}
--set {EpNum, EpName, EpType, EpIm, EpM, EpD, EpY, EpFul, EpSum, NewVer, UpgradeMessage} to value of XML elements of XML element "galacticaa" of result
end tell
But how on earth do I create a new element at end somewhere in the structure, or delete one for that matter? I am really lost and would greatly appreciate a working example.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden