Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Imports records from XML file.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
XML | 13.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
XML | The XML to process. Can be XML as text or the reference returned by XML.Parse function, so you can make several times queries to the XML without parsing it each time. |
"<test>Hello</test>" |
Flags | Various Flags. Add 1 to ignore errors in xml and continue parsing. This may lead to not everything in the xml being read. |
0 |
FileName | The file name of where the table is inside. Can be empty to look for the table in all files. Using a table in another database file may require you adding the other file as an external data source and adding the external table to your relationship graph to grant access. |
Get(FileName) |
TableName | The name of the table to insert record into. If empty, uses name from XML. |
"Assets" |
Returns number or error.
Insert record:
Set Variable [$r; Value: MBS( "XML.InsertRecords"; "
<Records>
<Record>
<Firstname>Joe</Firstname>
<LastName>Miller</LastName>
<Age>63</Age>
</Record>
</Records>";
0; Get(FileName); "Kontakte" ) ]
Created 25th July 2023, last changed 21st September 2023