XMLValidate
Uses a Document Type Definition (DTD) or XML Schema to validate an XML text document or an XML document object.
Returns keys status (boolean), errors (array), fatalerrors (array) and warnings (array)
Method Signature
Arguments
Argument
Type
Required
Description
Default
XML
any
true
The XML text document or XML document object to validate.
validator
string
false
The DTD or XML Schema to use for validation. If not provided, the DTD declaration within the XML document is used.
Examples
Related
Last updated