Tags · Functions · Objects
Lucee Function Reference
Choose a function:

Function 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,[string validator]):struct

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 string  No Any of the following:
- A string containing a DTD or Schema.
- The name of a DTD or Schema file.
- The URL of a DTD or Schema file; valid protocol identifiers include http, https, ftp, and file.