Lucee Function Reference

xmlparse()

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

Beispiel

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

Kategorie

XML

Argumente

Die Argumente für diese Funktion sind fest vorgegeben. Ausser den nachfolgenden Argumenten dürfen keine weiteren verwendet werden.
Name Typ Required Default Value Beschreibung
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.