18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Replacing XML tag values

vaibghargevaibgharge Members
edited October 2014 in Sahi - Open Source
I am reading one xml file and i wanted to make chnages in he values of few tags. when i put this line of code xmlStr = xmlStr.replace(/<\?xml[^>]*\?>/, "");
still <?xml version="1.0" encoding="WINDOWS-874"?> is coming when i am navigating to that xml which is leading to this error : The processing instruction target matching "[xX][mM][lL]" is not allowed.

What should i do now to overcome this problem .?

Answers

Sign In or Register to comment.