Lucee Function Reference

xmlparse()

Converts an XML document that is represented as a string
variable into an XML document object.

Example

xmlparse(string xmlString,[boolean caseSensitive,[any validator,[boolean lenient]]]):xml

Category

XML

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Default Value Description
xmlString string  Yes   Any of the following:  
caseSensitive boolean  No   Maintains the case of document elements and attributes.
Default: false  
validator any  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
  • A struct of xmlFeatures directives - since 5.4.2.20  
  • lenient boolean  No false if set to true, the parser is more lenient and forgives invalid XML and does the best to interpret it.