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.

How to keep formatted text when exporting to XML

Featured Replies

  • Newbies

Hi,

I'm very new to Filemaker and have no idea, if what I want to do it even possible, but I thought maybe someone here can help me ???-)

I want to export a filemaker database into an XML file and then use the XML to import information into a Flash file.

Some of the text is bold or in italics. How can I make sure the the formatting will be passed on to the XML file and then to the flash file?

Thanks

Julie

You could try to use the function GetAsCSS(text) to transfer the bold an italics texts into HTML tags.

-jens

  • Author
  • Newbies

Hi Jens, danke fuer die schnelle Antwort ???-)

as I said I'm very new to Filemaker, do you think you could explain the steps a bit more in detail? Do I use this script when I export or do I use it on a datafield?

Thanks

Julia

Edited by Guest

It is a function, so you could use it either within a field definition, or applied during a script, before an export. You cannot apply it during the Export script step itself; the [x] "Apply current layout's data formatting" (at the lower left) is for number and date (I think) formatting, not for text styles; and certainly not for CSS.

Used within a field definition, it could be used either as a calculation field, or as an auto-enter, with [ ] "Do not replace contents" unchecked. That way you could do any adjustments before exporting. Like removing the extra tags:

Some plain text, which nevertheless gets this unnecessary span tag

But, though somewhat sloppy CSS, it works and is not an error, so can be ignored.

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.