XML Auto Closing Tags

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.

Hi Shawn,

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.


Win a ticket to dev.objective from Lucee via Twitter, see http://bit.ly/1UbTMWj http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com mailto:lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com mailto:lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/923e122b-021b-43c8-a7ef-61a34c17abb8%40googlegroups.com https://groups.google.com/d/msgid/lucee/923e122b-021b-43c8-a7ef-61a34c17abb8%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout https://groups.google.com/d/optout.