Re: Help parsing XML file
Re: Help parsing XML file
- Subject: Re: Help parsing XML file
- From: Jim Skibbie <email@hidden>
- Date: Fri, 07 Mar 2008 17:42:50 -0600
- Thread-topic: Help parsing XML file
AWESOME!!
I don't get why the straight XPath expression
"/FMPDSORESULT/ROW/ValueColor01" doesn't work, but your solution did the
trick. I added the "01" onto the end of your ValueColor so I would only get
the ones that relate to each other.
Thanks a million!
Jim
> From: Rainer Standke <email@hidden>
> Date: Fri, 7 Mar 2008 15:27:42 -0800
> To: Jim Skibbie <email@hidden>
> Cc: "email@hidden" <email@hidden>
> Subject: Re: Help parsing XML file
>
> It seems to have to do with how the open tags are formed. This one
> asks for all tags that start with ROW and have children with names
> starting with ValueColor:
>
> set x to XMLXPath the_root with "*[starts-with(name(),'ROW')]/*[starts-
> with(name(),'ValueColor')]"
>
> --> {"Process", "Process", "Process", "Process", "150", "150", "150",
> "150", "Yellow", "Magenta", "Cyan", "Black"}
>
> I guess you might want to look into finessing the XPath request so
> that it yields what you are looking for. It's a lot deeper and more
> powerful than I used to think for a long time. Probably still is...
>
> Rainer
_______________________________________________
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