We are in the process of converting from CF 9 to Lucee and I’m running into
a bit of an issue with creating XML file. In CF9, and empty string would
create an XML element that looks something like this. but
in Lucee (4.5) we are seeing something like this:
Lucee, or Axis actually, is auto-closing the tags where as CF is not. Does
anyone know of any setting where I can possibly force this to match? I’ve
been looking into the Axis 1.x config files but I’m not sure where I could
put those files.
While it really isn’t a huge deal, it is a difference between CF and Lucee
that I would like to resolve.
As a workaround, you could change the xml string after it’s been created: <cfset newXML = rereplace(theXML, “<([^> \t]+)([^>]+?)? ?/>”, “<\1\2></\1>”, “all”) />
Although that would also change any html/xml inside cdata values.
Kind regards,
Paul KlinkenbergOp 20 jul. 2016, om 00:34 heeft Shawn Clark <@Shawn_Clark> het volgende geschreven:
We are in the process of converting from CF 9 to Lucee and I’m running into a bit of an issue with creating XML file. In CF9, and empty string would create an XML element that looks something like this. but in Lucee (4.5) we are seeing something like this:
Lucee, or Axis actually, is auto-closing the tags where as CF is not. Does anyone know of any setting where I can possibly force this to match? I’ve been looking into the Axis 1.x config files but I’m not sure where I could put those files.
While it really isn’t a huge deal, it is a difference between CF and Lucee that I would like to resolve.