Re: XMLLib OSAX and Filemaker Pro XML
Re: XMLLib OSAX and Filemaker Pro XML
- Subject: Re: XMLLib OSAX and Filemaker Pro XML
- From: Bruce Robertson <email@hidden>
- Date: Fri, 01 Jul 2011 10:37:42 -0700
Thus proving the vast market for FileMaker / Satimage integration which I occasionally champion.
Bruce Robertson
On Jul 1, 2011, at 8:43 AM, Emmanuel LEVY wrote:
> post on SUL?
>
> Emmanuel
>
> On Jul 1, 2011, at 5:36 PM, Jim Skibbie wrote:
>
>> I upgraded to XMLLib v3.34 as part of a transition to Snow Leopard and trying to get to 64-bit OSAX. I'm trying to parse XML replies coming back from a Filemaker Pro server. The XML looks like this:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <FMPDSORESULT xmlns="http://www.filemaker.com/fmpdsoresult">
>> <ERRORCODE>0</ERRORCODE>
>> <DATABASE>Job</DATABASE>
>> <LAYOUT>TestLayout</LAYOUT>
>> <ROW MODID="3292" RECORDID="12587460">
>> <Session.UserName>
>> <DATA>Admin</DATA>
>> </Session.UserName>
>> <Session.zi_ServerDate_u>
>> <DATA>Friday 7/1/2011</DATA>
>> </Session.zi_ServerDate_u>
>> </ROW>
>> </FMPDSORESULT>
>>
>> With XMLLib v3.1.0 OSAX, this code worked fine:
>>
>> set theDoc to XMLOpen XMLfile with bypassing namespace
>> set the_root to XMLRoot theDoc
>> set errorPath to XMLXPath the_root with "ERRORCODE"
>>
>> but with XMLLib v3.34, I no longer get a data object for the variable errorPath. I just get an empty list. This has something to do with namespace, because if I remove the copy xmlns="http://www.filemaker.com/fmpdsoresult" out of the XML, then this code works.
>>
>> Any thoughts?
>>
>> Thanks.
>> Jim
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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
>
_______________________________________________
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