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
AndroidManifest.xml (950 Bytes)TextFile.txt (12 Bytes)
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
ok sure
Here I am attaching file please find
Main.xaml (10.1 KB)
Hi @Ajit_Chowdary
Answer for your solution is here
Main.xaml (9.8 KB)
Mark it as solution if it helps you
Regards,
Nived N
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.