Hi All,
Is XML data binding is possible with android application or not....?
Thank you...
XML in Android
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Jul 21, 2011, 9:01 PM EDT
Yes... It is possible,,,,
Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Jul 21, 2011, 9:41 PM EDT
we can do..
refer: Link
Link2
hope it help you......
Riya SehgalRank #2,288 · 616 reputationPosted Jul 25, 2011, 8:49 PM EDT
Could you give any example, tutorial. I am using mono-android and want to use xml with my application.
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Jul 25, 2011, 10:09 PM EDT
There is no separate coding for reading and writing files in MonoDroid. Just you can use the below code
string path = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
string filePath = Path.Combine(path, "test.txt");
To Read:
using (var file = File.Open(filePath, FileMode.Append))
{
using (var strm = new StreamWriter(file))
{
strm.Write("Contents to write to the test file");
}
}
To Write:
using (var file = File.Open(filePath))
{
using (var strm = new StreamReader(file))
{
........
}
}