New topic: HELP ! Problems involving RB Projects and .XML format....
<http://forums.realsoftware.com/viewtopic.php?t=47260> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message barrytraver Post subject: HELP ! Problems involving RB Projects and .XML format....Posted: Mon Mar 11, 2013 1:43 pm Joined: Fri Sep 30, 2005 1:53 pm Posts: 851 Location: Philadelphia, PA HELP! I'm embarrassed to post this note because it will probably reveal my ignorance even more than other notes I've been posting on these Forums, but for several days I have been (unsuccessfully) attempting to track down and exterminate a bug in a program that is 20,000+ lines (hundreds of pages) long, and I seem to have gotten nowhere. In spite of the length of the program, the basics of what I and my program do is fairly straight-forward. I save an RB Project (which I'll call Project1) in XML format. My program Opens that Project1.xml file, puts the contents into a MainBuffer string, Splits that long string into an array called XMLLines( ), makes some modifications relating to that array (such as removing blank lines), Joins the elements to create a new Mainbuffer string, and Saves that new string to disk as an XML file (which I'll call Project2.xml). That file can then be loaded into the RB IDE and run or Saved as Project2.rbp, and that entire process has worked with NO PROBLEMS for half a dozen years or so. Until very recently.... Now the XML format file won't even load in properly. When I do a file compare (using WInMerge) I discover that (among other differences) "&" in Project1.xml has been changed to "&" in Project2.xml (or vice versa, I forget which). Wait! It gets curiously and curiouser. I change my program so that instead of Saving the modified file as Project2.xml it Saves it as Project2.txt. I then change the filename later to Project2.xml (yes, even tthough Windows 7 warns me not to change the extension, I do make that change) and -- surprise, surprise -- I now have NO PROBLEMS loading the file into the RB IDE and running it. Why doesn't it work when I Save the file as Project2.xml but it does work when I Save the file as Project2.txt and then later change the filename to Project2.xml? I have an idea that I'm missing something simple, but I'm very, very tired (I've been working on this morning, afternoon, evening, and night for days, except for taking a break on Sunday) and my brain isn't working well at this point. My guess is that I have inadvertently inserted a serious bug into my program (while making many other changes), but I can't figure out what or where it is. Can anyone help? Barry Traver Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
