in reply to Re: Update nodes in XML document
in thread Update nodes in XML document

XSLT, essentially exists to allow the specification of XML transformations without writing custom-code

Let's see your XSLT transform for this problem without custom code in that case. Processing instructions generally being considered code, we'll leave it as an exercise for the tethered reader as to how helpful your input is, again.