Lucee Function Reference

xmlvalidate()

Uses a Document Type Definition (DTD) or XML Schema to validate an XML text document or an XML document object.

Example

xmlvalidate(string xmlDoc,[any validator]):struct

Category

XML

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
xmlDoc string  Yes The XML to validate  
validator any  No Any of the following:
- A string containing a DTD or Schema.
- The name of a DTD, Schema file or an array containing multiple schema file names.
- The URL of a DTD or Schema file or an array containing multiple schema URLs; valid protocol identifiers include http, https, ftp, and file.