Mac OS X
Components Crossplatform Mac & Win Server Client Old Guides Examples
New in version: 7.3 7.4 7.5 8.0 8.1 8.2 8.3 8.4 8.5 9.0 Statistic
Imports XML and creates tables, fields and records.
|Component||Version||macOS||Windows||Server||FileMaker Cloud||FileMaker iOS SDK|
|XML||The XML data to import.|
|InsertFileName||The file name of where the insert table is inside. Can be empty.||Get(FileName)|
The prefix to put in front of all tables.
Sum of flags.
Pass 1 to ignore errors in xml and continue parsing.
Pass 2 to ignore outer XML wrapper nodes.
Pass 4 to import flat, so no subtables for included nodes.
Pass 8 to convert CDATA to text nodes. CData should contain ASCII or UTF-8 text!
Pass 16 to trim values.
Returns number or error.
DescriptionImports XML and creates tables, fields and records.
This function can import any XML into FileMaker tables with all fields and attributes.
Returns number of records to be added. This function prefers the import and runs it later at idle time. In a script please call XML.Import and than loop and do script pauses. Than use XML.Import.Status to check regularly for updates. When you get back Finished as status, the script can continue with other work.
If you have a XML file you need to import regularly into FileMaker and you have no XLST to transform it for FileMaker, you can use this plugin function. On the first run, it creates for a sample xml file the required tables and fields. Than you can define any layout or script to process values, e.g. copy into your tables. On further runs the plugin may add more fields (if newer xml file has more fields) and import newer records.
All tables have three default fields. _RecordUUID is an unique identifier for the record. _ParentRecordUUID provides a link to the record one level higher in the XML. This can be used to find child/parent records. The _CreationTimeStamp is the creation date, so you can distinguish different imports.
As a lot of records with a lot of data is imported and you may not need everything, you may want to put the imports in an extra FileMaker file. You decide if you clear tables before import or you want to keep history of all imports.
If the XML has errors like a missing < in the xml, you get an error. If you switch on IgnoreError parameter, the plugin reads everything until the error is reached which may give less records than possible.
This function works at idle time which is currently (FM 14) not supported on server. But you can use the function XML.Import.Work to perform the work instead of the idle handler. This enables importing of data, but not table/field creation.
Requires FileMaker 12 or newer.
See also XML.Import.SetBaseFields and XML.Import.SetExtraField.
Imports test.xml into FileMaker:
Import script with progress bar for importing XML with Windows ANSI encoding:
Read Database Design Report:
- MBS FileMaker Plugin, version 8.5pr5
- MBS FileMaker Plugin, version 7.5pr6
- MBS FileMaker Plugin, version 7.1pr3
- MBS FileMaker Plugin, version 7.1pr1
- MBS FileMaker Plugin, version 6.4pr1
- MBS FileMaker Plugin, version 6.2pr5
- MBS FileMaker Plugin, version 6.0pr7
- JSON Import for FileMaker
- [ANN] MBS FileMaker Plugin 5.3 for OS X/Windows
- MBS FileMaker Plugin, version 5.3pr3
Created 8th September 2015, last changed 27th March 2018
Feedback: Report problem or ask question.
MBS Xojo PDF Plugins