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.

Including an external XML file

Featured Replies

Hi

Has anyone any ideas as to the best way to include an existing XML file into a parent XML file? I'm not sure which is the best way to achieve this with FileMaker after looking at xsl:import, xsl:include, xi:include, defining an entity, etc!!

What I'm trying to achieve is to run one script in FileMaker that generates an XML file (parent.xml) that inserts the content of existing xml file/s (child.xml) into the final document. The structure needs to be something along the lines of...






One

Two

Three



*Child data elements need to be inserted from existing file child.xml*



One

Two

Three











I've got FileMaker and xsl producing the required xml files OK. The parent xsl uses FMDSORESULT and begins with the following:




<?xml version='1.0' encoding='UTF-8' ?>



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

	xmlns:fm="http://www.filemaker.com/fmpdsoresult"

	exclude-result-prefixes="fm">

 	

indent='yes' method='xml' />

The template then sucessfully exports the various FileMaker fields as XML.

Any ideas and help very much appreciated. Thanks in advance.

Andy

The standard method is to use the document() function to read the external file. E.g. the most concise variant would be:

  • Author

Mikhail, thanks for your reply, the document function does exacly what I'm after :clap:

I wasn't exactly sure which function was the best to use!

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.