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.

New to XML, export help needed

Featured Replies

We need to create an XML file from data of Filemaker 12 to import it into an online bookkeeping solution.  Tried to do it using Excel but the XML is too complex for Excel.

So, if I understand well I have to write a XSLT-stylesheet to convert Filemaker XML to the one I need.  Can someone provide me with a link to a tutorial I could use? Been to W3-school but...I need some real Filemaker examples to understand cause I'm a bit lost here. 

I have a xsd-sheet is that of any use?

 

Thank you for reading and eventually answering this question.

Can someone provide me with a link to a tutorial I could use? Been to W3-school but...I need some real Filemaker examples to understand cause I'm a bit lost here. 

 

Don't know about a Filemaker-specific tutorial, but there are quite a few examples right here on these forums. Try searching for "stylesheet" in this ('XML/XSL') and 'Importing and Exporting' forums. Most of these examples were posted by Fenton or by me.

 

 

I have a xsd-sheet is that of any use?

 

Probably not. A good example of what your output should look like is much more useful.

  • Author

Thank you comment.

  • 1 month later...

Which bookkeeping solution. I have build several in the past, so I might be able to help.

I does depend on the schema for the bookeeping solution, as Joost says. You can't just "export" FMP as XML and create a XSLT without knowing the "mapping" for the import. You build the XSLT out of the schema from the you import INTO. Something like:

<root>
<nextElement attribute1="yes">
data here
</nextElement
<anotherElement>
<child1>hello</child1>
<child2>world</child2>
</anotherElement>
</root>

Your stylesheet has headers and basically copies the schema, then uses "replace-type" functions (or merge-type, if that makes more sense:

 

... snip

<anotherElement>
<child1><xsl:value-of select="fm:ROW/fm:COL[1]/fm:DATA" /></child1>
<child2><xsl:value-of select="fm:ROW/fm:COL[2]/fm:DATA" /></child2>
</anotherElement>

... end snip

 

This tells the process to "read" the exported fields (COLs) from FM and push into the document. When the document is written all the correct values are there. This becomes XML that the other application can read with all your exported values.

 

Of course, there is more to the XSLT than that, but you can see that the schema is really important to creating it!

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.