tag:blogger.com,1999:blog-8207677684882647353.post6320266374530474545..comments2023-05-31T02:59:09.637-07:00Comments on Unity Noobs: XML - Writing to an existing xml fileAnonymoushttp://www.blogger.com/profile/08281307146303112988noreply@blogger.comBlogger30125tag:blogger.com,1999:blog-8207677684882647353.post-89966837788460558372017-10-27T04:29:55.143-07:002017-10-27T04:29:55.143-07:00This comment has been removed by the author.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-51905031530556465362017-07-28T10:35:16.453-07:002017-07-28T10:35:16.453-07:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/13764635144568419749noreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-18332170903349770982016-01-18T13:10:03.595-08:002016-01-18T13:10:03.595-08:00Thanks A bunch. This is likely the best tutorial f...Thanks A bunch. This is likely the best tutorial for someone who is just starting the basics of this.. You Rock!Anonymoushttps://www.blogger.com/profile/09505081161975816716noreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-55275993626144832582015-12-17T10:36:24.843-08:002015-12-17T10:36:24.843-08:00I watched your video on youtube and commented way ...I watched your video on youtube and commented way too early. Was confused why you didn't show any of the code that actually saved the information. Must apologize for that. Found this site and am so extremely grateful for your help! This was exactly what I was looking for to get started with what I am trying to do. Much much thanks for your work!Anonymoushttps://www.blogger.com/profile/15468509474238562355noreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-59141807432632799672015-10-20T00:37:20.761-07:002015-10-20T00:37:20.761-07:00Hey ,
i want to do the same thing but xml i...Hey ,<br /> i want to do the same thing but xml is not in project ...it will come from some url ..... I am using www .... iwas getting dat from there but its not getting saved(post)... any help on it how to that?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-38581633177661788612015-09-03T05:22:43.132-07:002015-09-03T05:22:43.132-07:00Hello , After finishing the game i Build the game ...Hello , After finishing the game i Build the game on win standalone . i faced problem when saving into Xml .<br />it does not work until i open the game as Admin . do you have a way to fix it ? <br />Mad_Techttps://www.blogger.com/profile/17019131375687257488noreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-62904356859245948572015-08-12T03:48:48.295-07:002015-08-12T03:48:48.295-07:00this is very useful thank u so much
this is very useful thank u so much<br />Gamerhttps://www.blogger.com/profile/07090590505119170419noreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-76048693688044641222015-06-16T04:46:39.826-07:002015-06-16T04:46:39.826-07:00Unfortunately are still very few functional tutori...Unfortunately are still very few functional tutorials on the net about xml parsing.<br />and also unfortunately the.... "Try this" option does not work in any version.<br />It looks like url xml parsing is completely inaccessible at the moment....mirceanoreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-38810906533280151372015-05-01T12:58:16.517-07:002015-05-01T12:58:16.517-07:00does this works on android devices ?does this works on android devices ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-68337069816250060402014-01-22T03:28:51.329-08:002014-01-22T03:28:51.329-08:00
Hi, it works well in editor, but I get MethodAcce...<br />Hi, it works well in editor, but I get MethodAccessException : Attempt to Acess a provate/protected method failed.<br /><br />when I run from web player build<br /><br />Thanks in Advance!!<br />Venkata Shiva Prasadhttps://www.blogger.com/profile/02192718471176025656noreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-86982136270419278652013-08-19T09:05:15.149-07:002013-08-19T09:05:15.149-07:00Why when I try to save string and load it back it ...Why when I try to save string and load it back it is this: System.Xml.XmlElementAnonymoushttps://www.blogger.com/profile/02616429841021171715noreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-85731450492285765232013-01-17T10:35:18.052-08:002013-01-17T10:35:18.052-08:00Finally found a solution!
For anyone else that run...Finally found a solution!<br />For anyone else that runs into this issue, the problem isn't that the xml file isn't getting saved, it's that Unity's TextAsset that represents the xml file is not getting updated.<br />Simply throwing AssetDatabase.Refresh(); after the save will fix the issue.CTMhttps://www.blogger.com/profile/10746402043820744559noreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-3425173623995182882013-01-17T05:45:53.798-08:002013-01-17T05:45:53.798-08:00Hey I'm using a very similar method for a data...Hey I'm using a very similar method for a data logger when saving but I'm running into an odd issue. The xml document gets saved but will only update if I leave switch from Unity to another program, then back to Unity. Any ideas why?CTMhttps://www.blogger.com/profile/10746402043820744559noreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-84736598448275869892012-11-08T04:46:35.363-08:002012-11-08T04:46:35.363-08:00Thanks for sharing! Thanks for sharing! Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-53481441913726541152012-08-10T04:53:50.878-07:002012-08-10T04:53:50.878-07:00Excellent work, thanks for sharingExcellent work, thanks for sharingtomekkiehttps://www.blogger.com/profile/11499764711599945162noreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-75704277738576715152012-06-06T01:53:40.590-07:002012-06-06T01:53:40.590-07:00Thank u yaar... i'll try it...Thank u yaar... i'll try it...Gurunoreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-55583659845864279232012-02-26T12:06:40.596-08:002012-02-26T12:06:40.596-08:00A million Thanks! :)
I want a system in which I ca...A million Thanks! :)<br />I want a system in which I can save multiple entries with a time stamp (instead of only one set of transforms in the XML)<br />Can you please tell me how to do it? :)Yash Sonihttps://www.blogger.com/profile/14620693293556991091noreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-31754882458885118592012-01-30T07:54:52.574-08:002012-01-30T07:54:52.574-08:00This comment has been removed by the author.PhEn!Xhttps://www.blogger.com/profile/09037111693883863384noreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-23305976954950868722012-01-30T07:42:31.619-08:002012-01-30T07:42:31.619-08:00I still have a problem with it. I found log for th...I still have a problem with it. I found log for this webpalyer file and it says <br />"<br />MethodAccessException: Attempt to access a private/protected method failed.<br /> at System.Security.SecurityManager.ThrowException (System.Exception ex) [0x00000] in :0 <br /><br /> at ReadXmlData.WriteToXml () [0x00000] in :0 <br /><br /> at ReadXmlData.DoMyWindow (Int32 windowID) [0x00000] in :0 <br /><br /> at UnityEngine.GUILayout+LayoutedWindow.DoWindow (Int32 windowID) [0x00000] in :0 <br /><br /> at UnityEngine.GUI+_Window.Do () [0x00000] in :0 <br /><br /> at UnityEngine.GUI.BeginWindows (Int32 skinMode, UnityEngine.IDList idlist, Int32 editorWindowInstanceID) [0x00000] in :0 <br />"PhEn!Xhttps://www.blogger.com/profile/09037111693883863384noreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-24939455639332285772012-01-25T08:07:42.502-08:002012-01-25T08:07:42.502-08:00Try this :
string url = "http://unitynoobs/S...Try this :<br /><br />string url = "http://unitynoobs/StreamingAssets/gamexmldata.xml" // your host<br /><br />WWW www = new WWW(url);<br /><br />XmlDocument xmlDoc = new XmlDocument();<br /> <br />xmlDoc.Load(www.url);Anonymoushttps://www.blogger.com/profile/08281307146303112988noreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-62798115893415669172012-01-25T01:55:52.518-08:002012-01-25T01:55:52.518-08:00Hi I try this code and it works for my almost perf...Hi I try this code and it works for my almost perfect. I've got some problem with export it to web player. It stops in line 79 "if(File.Exists (filepath))". If I skip this code stops in line 81 "xmlDoc.Load(filepath);". I don't known where is problem and how to make it works.<br /><br />Thanks for any help.PhEn!Xhttps://www.blogger.com/profile/09037111693883863384noreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-82528860911637393392011-09-24T11:56:48.336-07:002011-09-24T11:56:48.336-07:00You can download the full project in the end of th...You can download the full project in the end of the post, and then study how it was done.Anonymoushttps://www.blogger.com/profile/08281307146303112988noreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-82674100706125567452011-09-24T10:50:04.801-07:002011-09-24T10:50:04.801-07:00Thanks good script but how its work? at what i mus...Thanks good script but how its work? at what i must add the script, and how use it in game for save data or loadAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-31934431088393882392011-07-23T13:15:14.196-07:002011-07-23T13:15:14.196-07:00Yes, in fact, was done in the free version. thanks...Yes, in fact, was done in the free version. thanks for the comments.Anonymoushttps://www.blogger.com/profile/08281307146303112988noreply@blogger.comtag:blogger.com,1999:blog-8207677684882647353.post-25661480054541842592011-07-23T11:46:17.205-07:002011-07-23T11:46:17.205-07:00Amazing! The only con. is that its not crypted so ...Amazing! The only con. is that its not crypted so its editable by anyone, but exactly that characteristic will fit into my project!!! Thank you VERY VERY Much for the help!!! does it works with free unity version?Anonymousnoreply@blogger.com