Create/modify CDATA section in XML files...?
Posted: Fri May 11, 2018 7:31 pm
Hello everyone
I'm checking in to see if anyone has come up with a way to modify or replace a CDATA section using the scripting API in Switch?
I'm able to retrieve the CDATA contents and modify the string data using string.replace, but I don't see any way to create and/or replace the CDATA elements in XML.
If there was only one iteration of a CDATA section, I'd happily SED it into position but there will be literally thousands per file.
Does anybody have any ideas?
Thanks in advance.
I'm checking in to see if anyone has come up with a way to modify or replace a CDATA section using the scripting API in Switch?
I'm able to retrieve the CDATA contents and modify the string data using string.replace, but I don't see any way to create and/or replace the CDATA elements in XML.
If there was only one iteration of a CDATA section, I'd happily SED it into position but there will be literally thousands per file.
Does anybody have any ideas?
Thanks in advance.