XmlParse()
Converts an XML document that is represented as a string variable into an XML document object.
	XmlParse( xmlString=string, caseSensitive=boolean, validator=any, lenient=boolean );
	
	Returns: Xml
| Argument | Description | Default | 
|---|---|---|
| 
								 
									xmlString
								 
								
									string,
									
										required
									
								
							 | 
							
								edit
								 Any of the following: Alias: xmlStr, xmlText, xml  | 
 								|
| 
								 
									caseSensitive
								 
								
									boolean,
									
										optional
									
								
							 | 
							
								edit
								 Maintains the case of document elements and attributes. Default: false  | 
 								|
| 
								 
									validator
								 
								
									any,
									
										optional
									
								
							 | 
							
								edit
								 Any of the following: 
  | 
 								|
| 
								 
									lenient
								 
								
									boolean,
									
										optional
									
								
							 | 
							
								edit
								 if set to true, the parser is more lenient and forgives invalid XML and does the best to interpret it. Introduced: 5.3.8.135  | 
 								
 									 false  | 
						
Examples
edit  xml_stream = "
    <note>
      <to>Alice</to>
      <from>Bob</from>
      <heading>Reminder</heading>
      <body>Here is the message you requested.</body>
    </note>
  ";
  dump(XmlParse(xml_stream));
Related System Properties / Environment Variables
- LUCEE_XMLFEATURES_OVERRIDE_DISABLE - Boolean value to disable overriding XML parser features for security reasons
Type: boolean, Default: false 
See also
- Parsing
 - XML
 - HtmlParse()
 - Read XML with a listener Model (SAX)
 - XML Fast And Easy, using SAX - Listener Functions
 - Search Issue Tracker open_in_new
 - Search Lucee Test Cases open_in_new (good for further, detailed examples)