How to Replace specific Words In a Text File and save it as XML file
For replace u can use the string method Replace to replace the specific words…
Regarding the xml, can u share the sample text file which u need to convert to xml
in the android manifest file, there will be an android:label=“FIREBASE OTP”
that firebase OTP should be replaced by text which is in text file
I will say you my requirements clearly see
I’m having 2 files one is a text file and another one is an XML file…
In-text file there is a text ‘android’
And in XML file there is text “document”
Now I want to replace the “document” word which is in XML file…with Android letter which is in text file.
Hey you can use textfileoutput.replace(“document”,“android”)
can I provide text file solution because I do not have any xml file
Here I am attaching file please find
Main.xaml (10.1 KB)
Mark it as solution if it helps you
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.