ITunes 11 deleting my iTunesPrefs.xml file

Hello,
Ever since the latest upgrade of iTunes, nearly every time I start iTunes, I am prompted with the license agreement we're required to check agreement to at each upgrade. Additionally all of my Preferences have been reset to default.
I discovered that iTunes is deleting my iTunesPrefs.xml file and creating a new one.
I was able to grab an old backup copy of the file and now if I see the license prompt, I click Decline and then copy the preferences file to the iTunes folder in AppData and restart iTunes. This puts a bandaid on the problem, but does not solve it. Copying the file to the directory has become annoying.
Is anyone else experiencing this? If so, any ideas as to what to do to solve it?
Thanks.

Hi mynameisnotjoe,
Thanks for visiting Apple Support Communities.
I'd suggest starting with the steps in the "additional troubleshooting" section of this article:
Trouble installing iTunes or QuickTime for Windows
http://support.apple.com/kb/ht1926
All the best,
Jeremy

Similar Messages

  • HT1660 My "itunes library" folder is empty.  My libray music (prior to upgrading itunes) is now in an .xml file in my itunes location under my music.  How do I extract/convert this .xml file to a Itunes database and restore my Itunes music library??? Than

    My "itunes library" folder is empty.  My libray music (prior to upgrading itunes) is now in an .xml file in my itunes location under my music.  How do I extract/convert this .xml file to a Itunes database and restore my Itunes music library??? Thanks, Tom

    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    tt2

  • Using Java, How can I Update, Add, Delete nodes in XML Files.

    Hi,
    I want to store the student record (like Name, Age, school name, total mark etc.,) as nodes in the XMLfile. Also I should able to Update, Add, Delete any nodes (student record) in the XML file. How can I achieve this...using Java
    I am able to read the content of the xml file using xml-parser. But my problem is
    updating the xml file.
    pls suggest some solutions or links with " example source code"
    Thanks :-)

    There are 2 kinds of XML parsers : SAX and DOM. DOM seems to suit your need. You can use JAXP APIs to add, delete or change nodes or attributes.
    http://java.sun.com/webservices/jaxp/dist/1.1/docs/tutorial/TOC.html provides contents that would satisfy most of the needs.
    To save a DOM modified XML file use java IO APIs to write to the same file from which it was read using a Document object ( doc.getNodeValue() ).

  • Deleting records from XML file--just a little problem

    Hi!
    My xml file has a simple form like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <AdressBook>
        <Name>Suzy</Name>
        <Lastname>Love</Lastname>
        <Adress>You street 22</Adress>
        <Phone>911</Phone>
        <Email>[email protected]</Email>
      </Record>
    <Record>
       <Name>Judy</Name>
       <Lastname>Goblin</Lastname>
       <Adress>Milkyway</Adress>
       <Phone>911</Phone>
      <Email>[email protected]</Email>
    </Record>
    </AdressBook>Now, whenever I delete a record from that file it leaves a remaining tag <Record /> on the loction were previous record was. How do I delete that remaining tag or better yet, how do I delete Record element in whole. I am using jdom.
    Here is the code I use to delete records:
    public void deleteRecordFromFile(Record r)
              Element root=doc.getRootElement();
              List records=root.getChildren();
              Iterator listIt=records.iterator();
              while(listIt.hasNext())
                   Element rec=(Element)listIt.next();
                   Record p=new Record("","","","","");
                   List recChildren=rec.getChildren();
                   Element e=null;
                   for( int i=0;i<recChildren.size();i++)
                        e=(Element)recChildren.get(i);
                        switch (i)
                        case 0: p.setName(e.getText()); break;
                        case 1: p.setLastName(e.getText());break;
                        case 2: p.setAddress(e.getText());break;
                        case 3: p.setPhone(e.getText());break;
                        case 4: p.setEmail(e.getText());break;
                        default: ;
                   if(p.equals(r))
                        rec.removeContent();
                        System.out.println("Record deleted!");
              writeToFile(filename);
         }Like you see above I use the method removeContent(), should I use some other method? I need to get rid of that remaining tags in order to make my editing of the records stored in there easier. I guess I could make a seperate routine that would clean my file of those tags, but I think that is just too much time consuming...or not?
    Please help me out here.:)
    Message was edited by:
    byteminister

    You cannot remove the elements of a List while iterating over them without the risk of throwing a ConcurrentModificationException, whatever method you would use. So you can only delete the records in two steps: collect them all, and delete them afterwards.
    public void deleteRecordFromFile(Record r)
              Element root=doc.getRootElement();
              List records=root.getChildren();
              Iterator listIt=records.iterator();
              // Create a container for storing references to the records that will be deleted.
              ArrayList<Element> deleteList = new ArrayList<Element>();
              while(listIt.hasNext())
                   Element rec=(Element)listIt.next();
                   Record p=new Record("","","","","");
                   List recChildren=rec.getChildren();
                   Element e=null;
                   for( int i=0;i<recChildren.size();i++)
                        e=(Element)recChildren.get(i);
                        switch (i)
                        case 0: p.setName(e.getText()); break;
                        case 1: p.setLastName(e.getText());break;
                        case 2: p.setAddress(e.getText());break;
                        case 3: p.setPhone(e.getText());break;
                        case 4: p.setEmail(e.getText());break;
                        default: ;
                   if(p.equals(r))
                        // This record will be deleted.
                        deleteList.add(rec);
              // Delete all the records in deleteList.
              records.removeAll(deleteList);
              writeToFile(filename);
         }

  • Itunes/ Playlists backup/ Cannot import xml file./error message (50)

    Hello there,
    My itunes crashed so I'm trying to reinstall it. I do have a huge library, (>50K tracks) and have manual backups, but cannot using the library auto save since it would mean more than 100 dvd .
    I copied all music files to external hard drive. I've exported my library to get the xml file to backup all my playlists.
    I've reinstalled Itunes.
    I've added folder to the library to get all my tracks and it worked.
    Surprinsingly, all my playlists appear in Itunes, but they are all empty.
    I've used import list function to get the xml file and playlists but get constantly this message :
    "il est impossible d'importer le fichier bibliotheque itunes
    une erreur inconnue s'est produite (-50)"
    Impossible to import the itunes library file, unknown error appeared (50)
    I've tried with older xml files (maybe 5 or 6 old ones) and it's always the same. What are the solutions to get my playlists back ?
    I guess the problem would probably come from itunes version conflict (between 8 9 or 10). Should I try to get an old version of Itunes, compatible with my xml file ?
    Is there a way to convert my xml file in another format so that Itunes can read it ?
    This is the only huge weakness of this amazing software.
    Thanks.

    This bug did in fact appear for many of us when we upgraded to iTunes 7.3.
    Here 's a lengthy thread that discusses some possible solutions.
    For what it's worth, I uninstalled 7.3 and rolled back to an earlier version of iTunes.

  • Delete elements from XML file using DOM and java

    Hi
    I want now is to remove element from my XML file
    for example
    i have following xml
    <?xml version="1.0" encoding="UTF-8"?>
    <printing>
    <firstLineTexts>
              <firstLineText />
              <firstLineText>|line11</firstLineText>
              <firstLineText>|line12</firstLineText>
    </firstLineTexts>
    </printing>how do i remove all elements fireLineText
    my final output should be
    <?xml version="1.0" encoding="UTF-8"?>
    <printing>
    <firstLineTexts>
    </firstLineTexts>
    </printing>How do i do it using DOM,
    I can create instance of DOM and write it using TransformerFactory
    Ashish

    Hi
    I am trying the following code,
    but it is not working
                    NodeList nScene = doc.getElementsByTagName("firstLineTexts");
              NodeList nScene1 = nScene.item(0).getChildNodes();
              for (int i = 0; i < nScene1.getLength(); i++)
                   Node n = nScene1.item(i);
                        nScene.item(0).removeChild(n);
              }

  • ITunes will not accept my .xml file for podcast

    I'm really not exactly sure what I am doing wrong here. I have done a handful of podcasts over the years and never had a problem submitting a new feed. Now that I have a new show that I want to submit, iTunes give me the error: We had difficulties reading this feed, connection reset. I have done some Google'ing but can't really seem to find the exact answer as to what is wrong.
    Here is my feed: http://www.howdyinc.com/sass/itunes.xml
    Any help would be much appreciated. Many thanks in advance.
    B.

    FeedValidator finds no errors, and you feed can be subscribed to manually in iTunes (from the 'Advanced' menu). However your 'enclosure' tag is not structured in the normal way and this may be the issue. It reads:
    <enclosure url="http://www.howdyinc.com/sass/SASS.01.mp3" length="11639193" type="audio/mpeg"  ></enclosure>
    It should read
    <enclosure url="http://www.howdyinc.com/sass/SASS.01.mp3" length="11639193" type="audio/mpeg" />

  • Deleting the vendor.xml file

    ok so im upset that AT&T isnt releasing the 4.5 OS for my 8310 due to the bold having the 4.6 version. So i downloaded the 4.5 from another carrier but i need to know where to find the vendor file so i can delete it. dont judge me im still fairly new to "crackberry" thing. If you could explain it so an **bleep** could do it that would be sweet!
    thanks
    Mike
    Message Edited by glassdude on 11-26-2008 12:45 AM
    Solved!
    Go to Solution.

    Have to navigate to that location on your computer by going into your My Computer icon
    If someone has been helpful please consider giving them kudos by clicking the star to the left of their post.
    Remember to resolve your thread by clicking Accepted Solution.

  • Why do i have to itunes library xml files?

    Along with iTunes Library, there are two xml files i have; itunes music library.xml and itunes library.xml, do i need them both? I only ask as the file path information in itunes music library.xml are not up to data(i moved my library to an external HD) and would like to know if it would be safe to delete it.
    The links in itunes library.xml have seem to been updated.
    Thanks
    "If it's not broken, don't fix it...
    ........I never learn!"

    Google is your friend! (To quote:)
    iTunes Music Library.xml
    This file contains some (but not all) of the same information stored in the iTunes Library file. The purpose of the iTunes Music Library.xml file is to make your music and playlists available to other applications on your computer. In Mac OS X other iLife applications (like iPhoto, iDVD, and iMovie) use this file to make it easier for you to add music from your iTunes library to your projects.
    Actual article: http://support.apple.com/kb/HT1660

  • ITunes not writing valid XML file

    I've been having trouble with my iTunes library being seen by anything other than itunes (iPhoto, iLike etc) and the problem is with the XML file. If i try to open the xml file in BBEdit i get an error that says:
    *Incorrectly formed UTF-8*
    The UTF-8 File "iTunes Music Library.xml" is damaged or
    incorrectly formed; please proceed with caution.
    So I dump it and force iTunes to create a fresh copy, but that has the same problems.
    If I put an old copy of the XML file (from a few months back) into the iTunes folder, then all the other iApps can see an iTunes library and interact with it, but as soon as iTunes updates the file it becomes unusable again.
    The XML file is 30.5MB.
    Does anyone have even the slightest idea why iTunes is producing an unusable XML file all the time? Could it be something to do with the size of the file? Or could it be something that's appeared in my library over the past few months that's messing up the xml file?
    Any and all comments/suggestion would be greatly appreciated as i'm running out of hair to pull out

    Ok, I ran the rest through my parser, and there is (only) one other broken spot. It's on "Donde Liesta Usc (La Boheme)" Also the file location tag. (Shown as "where" in the summary tab of the info window in iTunes.) Deleting and re-adding this track as well as "Need You Tonight" should cause iTunes to correct those location tags and completely solve the problem by eliminating the character encodings that are illegal for utf-8. Both tracks should then also become playable again.

  • Have itl and xml files on external hd am running home premium. can  no longer access files, am told this is because they were created with a newer version of itunes. also when i try to download 10.3 it wont, just says invalid drive j and for me to try aga

    i am running vista home premium on desktop and vista basic on laptop. have placed my itunes music with .itl and .xml files onto external drive connected to another desktop running vista and can no longer access music on first two mentioned comps only on the one connected to external drive. always am told that the library cant be read because it was created using a newer version of itunes. have tried to download 10.3 but it always tells me that i have and invalid hard drive j and to try again. any ideas?

    Older versions of iTunes cannot read libraries created with newer versions of iTunes. You need to have the same version of iTunes on all your PCs. Is that the case?
    As far as the problem installing iTunes goes, see this article from b noir on dealing with the problem:
    https://discussions.apple.com/thread/2450004
    If you get to the point where you need the Microsoft Installer cleanup utility, you will need more help as it has been withdrawn by Microsoft. but I am hoping the virtual drive trick will work,

  • How to delete a perticular node from xml file using java code

    Hii All,
    Now i am trying to delete a perticular node from xml file.Like...
    XML file:
    <Licence>
    <SERVER>
    <was id="1">1</was>
    <was id="2">2</was>
    </SERVER>
    </LICENCE>
    I am working in messaging service using JABBER framework with whiteboard facility.
    Here Some commands i have created to add,modify,delete nodes from xml file.They Are
    1.If u want to add a new node then.
    create Licence.SERVER <ss id="3">ddd</ss> lic.xml
    (here u want to add a new node called "ss" under Licence.SERVER.
    And lic.xml is tyhe xml file name where it was saved.
    2.If u want to delete a node(Suppose <was id="1">),then the command should be
    delete Licence.SERVER.was:id='"1" lic.xml
    A problem arises that here it find two was attributes.And it delete the last was attribute,not the requested node.
    PLEASE HELP ME IN SOLVING THIS CODE..
    ------------------------------------

    Looks like you clicked on "Post" before you pasted in the code you were talking about.

  • Itunes update deleted msvcr80 dll. file

    My latest itunes update deleted the msvcr80 dll. file.   Itunes suggested uninstalling and then reinstalling itunes.  However, now the reinstall will not work.
    I have a windows 7 64 bit OS.

    Hi natsbh,
    If you are having issues with iTunes after an attempted update, you may find the following article helpful:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Regards,
    - Brenden

  • Updating xml file by iTunes library

    I have several iTunes libraries, managing them with 'iTunes Library Manager', bought from Dougscripts.
    When I add songs to my (main) library or make some changes in the data, all is perfectly visible in iTunes.
    As I use the iTunes data in a FileMaker Pro program, I want of course to update the information in the FMP program by running a script which reads the newly added songs from the xml file of the (main) iTunes library.
    This does not work, the newly added songs are not found.
    When I save the library, select another library and subsequently reload the main library, it works.
    Apparently, the xml file of the (main) library is not updated, unless it is forced by the saving, closing and reloading operation.
    Is there another way to force the library to update its xml file?

    My point is, that this does not happen.
    While the library is in use and even after it or iTunes itself is closed, the xml file is not updated, at least my script cannot find the recently added songs.
    Only after expressly saving the library and opening another library and reopening the original library, my script finds the new songs, so only then the xml file has been updated.

  • .xml file not recreating

    I'm trying to use iPhoto and sync to an iTunes playlist, but it turns out that my iTunes Music Library.xml file hasn't modified itself since December. That means it no longer matches my real library and iPhoto can't use it. I dragged the iTunes Music Library.xml file to my desktop, restarted iTunes, made a new playlist and added a song. When I quite iTunes, I briefly saw a temp file pop up in the iTunes folder, but no new .xml file was written. The same thing happens if I try to export my library to the desktop. There's a little blip of a file and then it's gone. Since the .xml file is old, I don't want to use it as a starting point to rebuild my real library, especially since it has all my iPad info on it.
    I trashed iTunes and reinstalled it and repaired permissions.
    Any other ideas? Thanks! - j

    Found an old post that helped me out.
    I looked at the creation time of the last .xml file and it was Dec. 6 @ 10:50. I checked my music files by "date added" and found a number of Xmas albums added at that time. There didn't appear to be any funky characters in their names, so I just deleted the 3 that I added right then. Nothing I listened to anyways. I looked back in the finder and "kaching!", a new .xml file was created.
    Turns out one bad apple did spoil the whole bunch. Problem solved! - j

Maybe you are looking for

  • User exit /function module include in WM : how to write the code

    Hi all, I would like when TO creation in WM the field Queue (LTAK-QUEUE) to take a specific value I found the user exit MWMTO001  Enhancements for end of transfer order generation . First is it the correct user exit  for this purpose? Then as  I have

  • Cannot uninstall Exchange 2007

    When I try to uninstall Exchange 2007 I get the following error under the Mailbox Role. The virtual directory 'ExchWeb' already exists under 'server.domain.com/Default Web Site' Parameter Name: VirtualDirectoryName. I actually tried removing the Exch

  • How to calculate averages and send to a file?(source code)

    Having trouble the book isn't very clear on how to use averages.............could some give me an example of a program..................that gets averages and send to a file..........?

  • ARD Login Script Problem

    Hey there. I have a Mac lab that I am controlling with ARD. I know you can use the following UNIX script to login.. osascript <<EndOfMyScript           tell application "System Events"                     keystroke "USERNAME"                     keys

  • PM new release

    Dears, Kindly let me know where i can find SAP new enhancements and releases related to PM. Regards Senthil