Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

File Paths for XML Imports

Featured Replies

Hi all,

 

I'm trying to import XML into FileMaker 11 and I can't get a few things to work for me.

 

  • First, in the import dialog when I specify an HTTP request it doesn't resolve properly and I have no idea what it resolves to because there doesn't appear to be any way of viewing the result within FileMaker. So what I've done is set the URL to field which is referenced by a web viewer and then I get the source which is XML using GetLayoutObjectAttribute ( "myWebViewer" ; "content" ), which I then set to a field and export it as an .xml file. Then I refer to that as my data source. Kludgy, I know, but it works.

 

  • The second issue is that I can't get the import into FM to work if I define my paths to the xml data source and my xsl stylesheet in variables which I then put in the calculation option. I have to use the "file" radio button/dialog to define the file paths. This is less than desirable because I want the paths to be dynamic. I'm currently testing by saving my xml and xsl files to the desktop, but I'll eventually save them to the temp folder. I've tried every file path syntax I've ever used in FM and none work (file:, filemac:, no prefix, just the path, etc.).
  •  

Long story short is that I can get the import to work but the amount of hard-coding and workarounds make me think I'm doing something very wrong. Hopefully someone else has dealt with these issues and can shed some light on what's happening and how I can make the process less kludgy. 

 

Thanks in advance!

 

-Kent

  • Author

Scratch the HTTP request off the list. I was putting the variable with the URL in the HTTP field instead of the calculation field  :idot:

 

I'm still stumped on why file paths in variables aren't working.

 

The path structure/syntax I expect to work is filemac:/Mac HD/Users/Me/Desktop/MyStyleSheet.xsl, but I get the error dialog:

 

XML Parsing Error

unable to open primary document entity ''

Line Number: 0

Column Number: 0

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.