• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: XMLLib OSAX and Filemaker Pro XML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XMLLib OSAX and Filemaker Pro XML


  • Subject: Re: XMLLib OSAX and Filemaker Pro XML
  • From: Emmanuel LEVY <email@hidden>
  • Date: Fri, 01 Jul 2011 17:43:01 +0200

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 (applescript- 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
  • Follow-Ups:
    • Re: XMLLib OSAX and Filemaker Pro XML
      • From: Bruce Robertson <email@hidden>
References: 
 >XMLLib OSAX and Filemaker Pro XML (From: Jim Skibbie <email@hidden>)

  • Prev by Date: XMLLib OSAX and Filemaker Pro XML
  • Next by Date: Re: Help with retrieving messages from GMail account in Mail.app
  • Previous by thread: XMLLib OSAX and Filemaker Pro XML
  • Next by thread: Re: XMLLib OSAX and Filemaker Pro XML
  • Index(es):
    • Date
    • Thread