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.

importing currency from xml source

Featured Replies

Hi,

I want to import currency from http://www.tcmb.gov.tr/kurlar/kurlar.xml

but filemaker returns an error.

The error is sourced by bank or should i do somethink to prevent this error.

Thanks in advance

Adam

When I click on this link I get a page not found error.

  • Author

sorry,

http://www.tcmb.gov.tr/kurlar/today.xml

Basically you need to write an xsl stylesheet, to transform the xml into something you can import into FileMaker. This is not a trivial task, but it is not all that hard. You may also need to tweak the xml a little first, because of the "iso-8859-9" (Turkish), which FileMaker may or may not like. (I'm no expert on languages, being from southern California).

You might want to read this thread:

http://www.fmforums.com/forum/showtopic.php?tid/168465/post/170458/hl/Hebrew/#170458

where we had much the same problem, but with Hebrew. In that case the user was on a Mac. We used a "curl" command line to download the xml data to a local file, then switch the encoding to "utf-8". We then Imported into FileMaker, using an xsl file written specifically for his xml data. I believe similar could be done on Windows, but I wouldn't know the exact syntax.

Your data is similar to his; but different. It also has more elements. And it has many "records", many currencies. So, questions would be: "Which elements do you want, or all?" and "Which currencies do you want, or all?" It's pretty easy to get just some elements. It's a bit more tedious to get most, but not all currencies. It's easiest (by far) to just get all currencies, then delete the ones you don't want in FileMaker.

This is what a general xml record looks like, within the "Tarih_Date" root element. As you can see, there are several types of rates. Which do you want?

1

AMERİKAN DOLARI

US DOLLAR

1.3422

1.3487

1.3413

1.3507

1

 

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.