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.

XML export unwanted code

Featured Replies

  • Newbies

Hi i made a export from my calculated xml data. Using a simple stylesheet to

export my calculated field and clean up the FMP xml code.

<?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet version="1.0"

xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

xmlns:fmp="http://www.filemaker.com/fmpxmlresult"

exclude-result-prefixes="fmp">

<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>

<xsl:template match="/">
<xsl:value-of select="." disable-output-escaping="yes" />

</xsl:template>

</xsl:stylesheet>

I only need 1 field to be exported. That contains all my xml data.

When it is done, in the xml the xml start with a 0. Therefore the xml is not working.

It is my first xml export project. What do i do wrong ?

Edited by PaSavICT

Change this:

<xsl:value-of select="." disable-output-escaping="yes" />

to:

<xsl:value-of select="fmp:FMPXMLRESULT/fmp:RESULTSET/fmp:ROW/fmp:COL/fmp:DATA" disable-output-escaping="yes" />

Otherwise you are outputting the string-value of the entire / root node - and this includes the value of ERRORCODE.

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.