Re: XMLLib OSAX and Filemaker Pro XML
Re: XMLLib OSAX and Filemaker Pro XML
- Subject: Re: XMLLib OSAX and Filemaker Pro XML
- From: Jim Skibbie <email@hidden>
- Date: Fri, 01 Jul 2011 18:15:12 +0000
- Thread-topic: XMLLib OSAX and Filemaker Pro XML
Many thanks to François Delyon at Satimage for the quick response. If anyone is interested, the key is to not ignore the namespace, but instead set a namespace prefix with the XMLSetContext command so that you can reference the XPath with that prefix:
--set theDoc to XMLOpen XMLfile with bypassing namespace
set theDoc
to XMLOpen
XMLfile
XMLSetContext
theDoc namespace {nsprefix:"foo",
nsurl:"http://www.filemaker.com/fmpdsoresult"}
set the_root
to XMLRoot
theDoc
--set errorPath to XMLXPath the_root with "ERRORCODE"
set
errorPath to XMLXPath
the_root with "foo:ERRORCODE"
post on SUL?
Emmanuel
|
_______________________________________________
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