XMLLib OSAX and Filemaker Pro XML
XMLLib OSAX and Filemaker Pro XML
- Subject: XMLLib OSAX and Filemaker Pro XML
- From: Jim Skibbie <email@hidden>
- Date: Fri, 01 Jul 2011 15:36:45 +0000
- Thread-topic: XMLLib OSAX and Filemaker Pro XML
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