Components Crossplatform Mac & Win Server Client Old Deprecated Guides Examples Videos
New in version: 10.1 10.2 10.3 10.4 10.5 11.0 11.1 11.2 11.3 11.4 Statistic FMM Blog
Validates XML against schema.
|XML||8.2||✅ Yes||✅ Yes||✅ Yes||✅ Yes||✅ Yes|
|FilePath||Native file path to the file to check.||"/Users/cs/Desktop/test.xml"|
|Schema||The schema definition as xml text.
With version 10.2 can also be file path.
Returns OK or error.
DescriptionValidates XML against schema.
Please pass in XML file path and a valid XSD schema.
Return list of errors, so you see them all.
If you use Process.SetCurrentDirectory to change current folder for the application process, the library uses this folder to search for referenced xsd files.
Changed with version 10.2 that you can pass schema as file name/path, so we can load it from same folder as the schema and referenced files in same folder are found.
This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.
For Server be aware that server has limited permissions and may not be able to access all files on a computer.
Validate a file in a folder:
Validate all in one folder:
- Version 10.2
- Changed XML.ValidateFile to accept schema as XML file path.
- Version 8.2
- Added XML.ValidateFile function.
- MBS FileMaker Plugin, version 10.2pr5
- MBS FileMaker Plugin 8.2 - More than 5200 Functions In One Plugin
- MBS FileMaker Plugin 8.2 - 5200 Funktionen in einem Plugin
- MBS FileMaker Plugin, version 8.2pr1
Created 6th March 2018, last changed 22nd April 2020
Feedback: Report problem or ask question.
MBS Xojo Plugins