Hi Guys, i'm new to this forum. I have been looking to find out some solution for how to read and edit xml file values and save it in the same xml file.
I'm working on a Firefox extension and I have a xml file which i have created a xul tree to display the information from xml file and it works fine. Now, i want allow the user to edit the values of the xml values and save it dynamically.
To display the values from xml file i have used query type xml in xul tree. I have posted this other websites to find out the solution but i couldn't get any proper response. Here i'm thinking in a different direction because I know how to connect java class in javascript xul using live connect.
Please give me some idea to proceed with some sample code. I'm not really goot at programming...
My xml file:
<?xml version="1.0" encoding="UTF-8"?> <CONTACTS> <CONTACT> <PDE-Identity>N65539</PDE-Identity> <FirstName>Arun_niit</FirstName> <LastName>Arun_niit</LastName> <Facebook-ID/> <EMAILS> <EMail> <Type>yahoo</Type> <Value>nura_ice@yahoo.co.in</Value> </EMail> </EMAILS> </CONTACT> <CONTACT> <PDE-Identity>N65546</PDE-Identity> <FirstName>FodenBen'</FirstName> <LastName>Ben' Foden</LastName> <URL>http://www.facebook.com/profile.php?id=100002440474277</URL> <Facebook-ID>100002440474277</Facebook-ID> <EMAILS/> </CONTACT> <CONTACT> <PDE-Identity>N65553</PDE-Identity> <FirstName>GhorbelMahmoud</FirstName> <LastName>Mahmoud Ghorbel</LastName> <Facebook-ID/> <EMAILS> <EMail> <Type>alcatel-lucent</Type> <Value>mahmoud.ghorbel@alcatel-lucent.com</Value> </EMail> </EMAILS> </CONTACT> <CONTACT> <PDE-Identity>N65560</PDE-Identity> <FirstName>keyankarthik</FirstName> <LastName>karthik keyan</LastName> <Facebook-ID/> <EMAILS> <EMail> <Type>yahoo</Type> <Value>karthycse@yahoo.co.in</Value> </EMail> </EMAILS> </CONTACT> <CONTACT> <PDE-Identity>N65567</PDE-Identity> <FirstName>Rangarajkarthik</FirstName> <LastName>karthik Rangaraj</LastName> <Facebook-ID/> <EMAILS> <EMail> <Type>gmail</Type> <Value>kart2006@gmail.com</Value> </EMail> <EMail> <Type>yahoo</Type> <Value>karthikrangaraj@yahoo.com</Value> </EMail> </EMAILS> </CONTACT> <CONTACT> <PDE-Identity>N65576</PDE-Identity> <FirstName>ReddyAkky</FirstName> <LastName>Akky Reddy</LastName> <Facebook-ID/> <EMAILS> <EMail> <Type>gmail</Type> <Value>akkireddych@gmail.com</Value> </EMail> </EMAILS> </CONTACT> <CONTACT> <PDE-Identity>N65583</PDE-Identity> <FirstName>SandfordFrankie</FirstName> <LastName>Frankie Sandford</LastName> <URL>http://www.facebook.com/FrankieSandfordApprovedPage</URL> <Facebook-ID/> <EMAILS/> </CONTACT> <CONTACT> <PDE-Identity>N65590</PDE-Identity> <FirstName>TheSatsRochelle</FirstName> <LastName>Rochelle TheSats</LastName> <URL>http://www.facebook.com/profile.php?id=100002487211054</URL> <Facebook-ID>100002487211054</Facebook-ID> <EMAILS/> </CONTACT> <CONTACT> <PDE-Identity>N65597</PDE-Identity> <FirstName>KumarVeera</FirstName> <LastName>Veera_Kumar</LastName> <Facebook-ID/> <EMAILS> <EMail> <Type>yahoo</Type> <Value>KUMARg_81@yahoo.com</Value> </EMail> </EMAILS> </CONTACT> </CONTACTS>
I have posted in this website too:Please help me guys. Thank you very much.HTML Code:http://stackoverflow.com/questions/6482549/function-to-edit-and-save-xul-tree-cell-values