Is there a way for me to change the stylesheet tag in an xml. Is there a way to do that….
ex if I receive
<?xml version="1.0" encoding="us-ascii"?>
<?xml-stylesheet type="text/xsl" href="www.somecompany.com/stylesheet.xsl"?>
<MedicalRecord>
......
......
</MedicalRecord>
I want to make it
<?xml version="1.0" encoding="us-ascii"?>
<?xml-stylesheet type="text/xsl" href="mystylesheet.xsl"?>
<MedicalRecord>
......
......
</MedicalRecord>
Note the href tag value has changed.
At it’s simplest based on a straight replace: