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

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

Recommended Posts

Posted

Is it possible to use an external schema when exporting data from filemaker in xml type.

At the moment I use this command 'fmpro?-db=dbase.fp5&-format=-dso_xml_dtd&-find'

The data needs to be exported using a certain schema - is this possible?

TIA

  • 1 month later...
  • Newbies
Posted

iain,

I'm working on a project that sounds similar to yours. I submit information to the FM db over the web using HTML forms. What I get back is XML. Now, take this next bit of advice with the warning that I'm learning this as I go. The XML response from the FM web companion server needs to be formatted with XSL or XSLT. To this point, I have been receiving the raw XML response and interpreting the error codes. I am just now getting down to teaching myself XSL/XSLT. But from what I've read, it seems the way to go. -RM

  • 2 weeks later...
Posted

My answer assumes you have a Schema or DTD from which you can create your header.

You can use FMP to Export XML.

1. You need to setup a header(see the DTD or schema to get the right format) in a global field and a footer in another.

2. Create a field to hold you data. Create 2 dummy records and paste the header in you data field of one and the footer in the data field of the other.

3. Set up a calc in each record that displays your data in XML format and put it in the data field

To display a field called idNumber:

"<idNumber>"&idNumber&"</idNumber>"

4. Sort your database so the header goes to the top and the footer goes to the bottom and then export as cvs.

It worked great for my database. Let me know if have not explained it clearly.

Thanks,

Graham

[ February 12, 2002, 07:18 AM: Message edited by: spragueg ]

This topic is 8318 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.