Re: Help parsing XML file
Re: Help parsing XML file
- Subject: Re: Help parsing XML file
- From: Rainer Standke <email@hidden>
- Date: Fri, 7 Mar 2008 14:27:20 -0800
Try this:
set x to XMLGetText (the_root with "/FMPDSORESULT/ROW/ValueColor01")
In your code the x yielded an XMLReference which I understand to be a
pointer to a tag in an XML file. You need XMLGetText to retrieve the
'content' of the tags.
You could also just add this to your script:
set y to XMLGetText x
I have tried none of this myself, but it should work anyway ;-)
Rainer
On Mar 7, 2008, at 11:11 , Jim Skibbie wrote:
Here’s the code I’m using, but I don’t get any nodes returned for
the variable x.
set XMLfile to alias "Macintosh HD:tempscripttext.xml"
set theDoc to XMLOpen XMLfile
set the_root to XMLRoot theDoc
set x to XMLXPath the_root with "/FMPDSORESULT/ROW/ValueColor01"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
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