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 21:40:22 -0600
- Thread-topic: Help parsing XML file
I removed the namespace designation and made a second test XML file and now
my original XPath below works.
set x to XMLXPath the_root with "/FMPDSORESULT/ROW/ValueColor01"
I'm pretty new on the whole XML and XPath, so please let me know how the
namespace comes into play.
Thanks for the tip.
Jim
> From: "Steven D. Majewski" <email@hidden>
> Date: Fri, 7 Mar 2008 19:49:07 -0500
> To: Jim Skibbie <email@hidden>
> Cc: "email@hidden" <email@hidden>
> Subject: Re: Help parsing XML file
>
> I think that is probably a namespace issue.
> You have a declaration for the default namespace in the data file,
> but you're probably not using the namespace in the xpath selection.
> There really is a difference between NO NAMESPACE and the DEFAULT
> NAMESPACE,
> even though they may both be "spelled" the same way in different
> contexts.
>
> A simple test would be to remove the: xmlns="http://www.filemaker.com/
> fmpdsoresult"
> from a copy of your data file and see if what you're trying works.
> If removing the namespace from the data fixes the problem, then it's
> a namespace
> problem, and I can give you additional (but more complicated) tips on
> how
> to express the namespace properly in your xpaths.
>
>
> -- Steve Majewski / UVA Alderman Library
_______________________________________________
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