• 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
XMLLib OSAX and Filemaker Pro XML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: XMLLib OSAX and Filemaker Pro XML
      • From: Emmanuel LEVY <email@hidden>
  • Prev by Date: Re: file path problem
  • Next by Date: Re: XMLLib OSAX and Filemaker Pro XML
  • Previous by thread: Re: file path problem
  • Next by thread: Re: XMLLib OSAX and Filemaker Pro XML
  • Index(es):
    • Date
    • Thread