Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  


Validates XML against schema.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
XML 8.1 Yes Yes Yes Yes Yes
MBS( "XML.Validate"; XML; Schema { ; Flags } )   More


Parameter Description Example value
XML The XML to process.
Can be XML as text or the reference returned by XML.Parse function, so you can make several times changes to the XML without parsing it each time.
Schema The schema definition. $schema
Flags Optional
Various Flags.
Add 1 to ignore errors in xml and continue parsing. This may lead to not everything in the xml being read.
Add 8 to remove all namespaces before query to have queries easier.


Returns OK or error.


Validates XML against schema.
Please pass in XML (or reference number from XML.Parse) and a valid XSD schema.

Version 8.2 or newer will return list of errors, so you see them all.


Validate XML:

Set Variable [ $result; Value:MBS("XML.Validate"; XML Validation::XML; XML Validation::Schema; 0) ]

See also

Example Databases

Blog Entries

Release notes

Created 6th February 2018, last changed 16th May 2019

XML.ToJSON   -   XML.ValidateFile

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins