Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Importing XML file from a file not ending in ".xml"?


This topic is 5201 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Does FileMaker Pro require an XML data file to always end in ".xml" in an import?

I have an XML file that was generated from another program. This program is an in-house company program. It's a real XML data file with all the proper XML formatting, but this file does not end in ".xml", it always ends in ".hfg". That's the only hang up.

Platform is both Win and Mac, and there are thousands of files in our archive that we have in this format. We also create new ones. I don't want to use a Third Party plug-in, and changing the file names just isn't practical.

Is there a way to get FileMaker to import these XML files that do not actually end in ".xml" in the filename even though they are really XML files? Without using AppleScript, a Third Party Plug-In and without changing the file name to end in ".xml"? (In other words all within FileMaker?)

We can select each individual file to import with a script and an open dialog box, so I'm thinking possibly of a variable after the path has been established that tells the script that the path to the file ending in ".hfg" is really the path to ".xml" etc. after it has been selected...maybe?

Any ideas? Thanks.

Posted

Insert the file into a container field, then export it to the temp directory and rename the file to end in xml. Process this exported file.

Posted

Vaughan, thank you for your quick reply.

I'll definitely give this a whirl and see how it goes.

Thanks again.

This topic is 5201 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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