XMLLib OSAX Questions
XMLLib OSAX Questions
- Subject: XMLLib OSAX Questions
- From: Gil Dawson <email@hidden>
- Date: Wed, 05 Sep 2012 17:57:48 -0700
Hi--
I've just started experimenting with the Satimage XMLlib osax. I have a couple of questions.
1) How can I tell the version number of the osax? Which version is current?
2) The XMLSetTagName command gets a run-time error.
set theQuestionsFile to ¬
"MBProHD:Users:gil: ... TestQuestions.xml"
set theQuestions to XMLOpen file theQuestionsFile
log (XMLDisplayXML theQuestions)
(*<?xml version="1.0" encoding="UTF-8"?>
<Stem>What color is a rose?</Stem>
<Comment>Of Texas</Comment>
set thisNode to XMLRoot theQuestions
set thisNode to XMLChild thisNode index 1
set thisNode to XMLChild thisNode index 1
log "XMLTagname thisNode=" & (XMLTagName thisNode)
(*XMLTagname thisNode=Stem*)
XMLSetTagName thisNode to "Text"
error "An error of type -2 has occurred." number -2
log "XMLTagname thisNode=" & (XMLTagName thisNode)
XMLSave theQuestions
XMLClose theQuestions
Have I set it up wrongly?
|
_______________________________________________
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