Re: XML generation details (was Re: ASObjC alloc and object creation)
Re: XML generation details (was Re: ASObjC alloc and object creation)
- Subject: Re: XML generation details (was Re: ASObjC alloc and object creation)
- From: Jean-Christophe Helary <email@hidden>
- Date: Mon, 29 Jan 2018 21:50:15 +0900
Shane,
Apologies. I don't understand your remark about having a reference to an
element. But that must be pretty obvious...
Practically speaking here is what I have:
set project to current application's NSXMLNode's elementWithName:"project"
set project_tags to {"tag1", "tag2"}
repeat with child in project_tags
set child to (current application's NSXMLNode's elementWithName:child
stringValue:"default")
(project's addChild:child)
end repeat
How do I later access the "tag1" element to further add children to it?
> Jean-Christophe Helary
> -----------------------------------------------
> http://mac4translators.blogspot.com <http://mac4translators.blogspot.com/>
> @brandelune
_______________________________________________
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