Can't change xml file

I am trying to import files from an external drive. I was able to do the add file to library from the drive but whenever I reload itunes it expects the files to be on my external drive which I have removed. I tried to change the location of the files in the itunes music library xml file but everytime I bring up itunes it changes the file location back to the original file on the external hard drive. I physically copied the files from the external drive to my itunes directory but itunes refuses to let me manually change the xml file to reflect the new location. Does anyone have a clue as to how I can update the xml file to point to the itunes directory for these imported songs rather than pointing back to the external drive?

Bart_Blommaerts wrote:
2: I set the "&#235 ;" value myself ..The problem setting this value in your Java code is that ... ë cannot be used to escape anything in Java, it only can be used to escape characters in an XML file.
This is why an XML parser will automatically translate this value for you when it parses the XML file. The dom4j Document object will never see this value and when you do a getText() the resolved value is returned.
Instead in Java you should use either the '�' value (make sure to save your Java files as Unicode) or you could use the Java way to escape characters: \u00EB.
I was satisfied with the "�" in my XML file ... but when I deployed the application to the webserver .. and generated an XML-file I read "��", which is definitely not what I want ..
So on my local Tomcat5 server I get "�". On the SunWappserver I get "��".This seems to be a different problem. When you read the file, you will have to make sure to read the file with the encoding that it was saved in. This means that the editor that you use to read the file will have to be able to read files encoded using UTF-8 (Unicode).

Similar Messages

  • How I can create a XML file from java Aplication

    How I can create a XML file from java Aplication
    whith have a the following structure
    <users>
    <user>
    <login>anyName</login>     
    <password>xxxx</password>
    </user>
    </users>
    the password label must be encripted
    accept any suggestion

    Let us assume you have all the data from the jsp form in an java bean object..
    Now you want a xml file. This can be acheived in 2 ways
    1. Write it into a file using java.io classes. Say you have a class with name
    write("<name>"+obj.getName+</name>);
    bingo you have a flat file with the xml
    2. Use data binding to do the trick
    will recommend JiBx and Castor for the 2nd option
    Regards,
    Rajagopal

  • Can I change the file path that itunes reads my music files from? 65000 files trying to be transferrd from external to internal HD. I dont want itunes to manage my collection, just read it. thanks

    Can I change the file path that itunes reads my music files from?
    I have about 65000 music files that i have transferrd from my external to a new laptop internal HD.
    I have organised the folders myself as I use a PC and do not want itunes to organise the folders because when I'm searching through music on windows it is sorted out by artists/albums with 'the...(eg  The Beatles)' under 'T' instead of 'B'.
    Long story short.... Is there any way that I can keep my itunes library as it is on the external HD and copy it to the new laptops C drive, keep all the info (playlists etc) and still have the same folder structure as on the external HD?
    Or, is there any way of making windows sort things in alphabetical order like it is in itunes (eliminating the 'the' issue)?

    The files that weren't inside the media folder on the original machine need to be copied over to exactly the same paths as they had on the source machine. See this thread for an ongoing discussion of a similar problem. See also this post on migrating the iTunes library.
    tt2

  • When bates numbering a .pdf in XI, how can I change the file name to include the bates number AND its name?  I know under file output, there is an option for either/or.  I want both.  Thank you.

    when bates numbering a .pdf in XI, how can I change the file name to include the bates number and the file name?  I know under "file output: it's either/or.  I need both.  Thanks!

    Long ago I wrote a little demo using the touch command. Check out the following thread:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=25128#M25128
    LabVIEW Champion . Do more with less code and in less time .

  • Updating flash from a dynamically changing XML file

    Creating a non-interactive status display: I want to have the
    flash display reflect data in a server-based XML-file. So far this
    is easy. But I want the display to change everytime the XML file
    changes-- in order to reflect status changes. I've used an
    XMLConnector and specified it and the trigger in the first frame.
    The Flash code catches and shows the XML values initially . But
    when I edit the XML file, the new values are never picked up by
    Flash- its almost as though the values are cached. How do I get
    Flash to regularly be updated from a changing XML file? I've also
    tried putting the trigger in a loop- but that doesn't work
    either.

    I DID find a solution with setInterval, but there is still a
    problem of a diffeent sort.
    When using XMLConnector, it appears that
    XMLConnector.trigger() is the thing that goes out and gets new data
    from the server. so:
    function checkForData():Void {
    myXML.trigger();
    <<handle new values of bound data>>
    var intervalID:Number = setInterval(checkForData, 10000);
    works very well by executing the trigger every 10000
    timeunits. This all works when run in the Flash Player. However, if
    I embed the thing in a webpage (with either FireFox or IE7 or 6),
    It stops triggering after the first time. Interestingly if I also
    run the Flash Player version, then the web version keeps updating,
    but stops if I kill the Player. So, I'm wondering: whats up with
    this?

  • Can i change the file extension from .html to .cfm in Muse?

    Can I change the file extension from .html to .cfm in Muse?  Then I could use my old file names.

    Muse only supports .html as a page extension at this time.
    Thanks,
    Vinayak

  • Can you edit xml files in adobe contribute

    can you edit xml files in adobe contribute

    No, you can't even open them in recent versions of PSE.

  • How can I change the file download time using Adobe Send? Adobe SendNow had a lot more options.

    How can I change the file download time using Adobe Send? Adobe SendNow had a lot more options.I don't see nay with Adobe Send.

    There isn't a feature in Adobe Send for setting and end-date for a file's availability. At any time, you can Unshare the file, however.

  • Is there any script or batch program that can pick a xml file...

    Hi,
    Is there any script or batch program that can pick a .xml file from a folder and place it in a different folder on the same directory periodically without using an XI interface.
    Thanks,
    np

    Hi Nadini,
    Please refer below link for how to sechdule a batch file.
    [Schedule Batch File-How to?|http://www.tech-archive.net/Archive/WinXP/microsoft.public.windowsxp.general/2006-04/msg01349.html]
    And please refer below links for how to write a batch file and other one as batch file commands.
    http://www.wikihow.com/Write-a-Batch-File
    http://www.aumha.org/a/batches.php
    these two links was a click away in google :).
    regards
    Aashish Sinha

  • Can't parse xml file in jar file when  can't connect to web server

    My JNLP application throw ConnectException when trying to parse xml during web server offline.
    Steps,
    1. JNLP application has been launched once and all related jar and xml files are already downloaded to local cache.
    2. Then I close web server to test offline launch.I launch the JNLP application using shortcut with -offline parameter.
    3. However the JRE internal xml parser tries to connect to web server and report connection error as web server is down now.
    My concern is the file is already in the cache, why java still try to connect URL. This error happens in JRE 1.5, but it doesn't happen in JRE 1.6. It only happens when web server is down in JRE 1.5.
    I think it may be a bug of JRE, do any one can give me some hint about how to resolve?
    Thanks in advance!!
    I also moved the code piece to a simple web start example, following it the error and code pieces.
    Error Trace in Java console,
    ava.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
         at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
         at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
         at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.jar.JarURLConnection.getInputStream(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
         at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
         at EntXmlUtil.buildDocument(EntXmlUtil.java:57)
         at Notepad.testParseXML(Notepad.java:870)
         at Notepad.main(Notepad.java:153)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Notepad.java
    public void testParseXML() {
         URL xmlURL=Notepad.class.getClassLoader().getResource("xml/Login.xml");
         try {
                   org.w3c.dom.Document doc = EntXmlUtil.buildDocument(xmlURL);
                   System.out.println("Test"+doc);
              } catch (Exception e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    EntXMLUtil.java
    private static DocumentBuilderFactory dbf = null;
         static {
              dbf = DocumentBuilderFactory.newInstance();
              dbf.setNamespaceAware(true);
              dbf.setValidating(true);
              dbf.setIgnoringComments(true);
              dbf.setIgnoringElementContentWhitespace(true);
    public static DocumentBuilderFactory getDocBuilderFactory() {
              return EntXmlUtil.dbf;
    public static Document buildDocument(URL url, String systemId) throws Exception {
              DocumentBuilder db;
              Document doc;
              InputStream is;
              String sysId = null;
              if(systemId == null)
                   sysId = url.toExternalForm();
              else
                   sysId = systemId;
              db = EntXmlUtil.getDocBuilderFactory().newDocumentBuilder();
              is = url.openStream();
              doc = db.parse(is, sysId);
              is.close();
              return doc;
         }

    I finally got a temperary work around for this issue, using JRE5 version lower than update 16(not include update 16).
    i found Sun modify the URL which returned by XXX.class.getClassLoader().getResource("xml/Test.xml,") after update 15, previous it is related with the cache path, like C:\Users\epenwei\AppData\LocalLow\Sun\Java\Deployment\cache\javaws\http\Dlocalhost\P80\DMEntriView\DMapp\AMNotepad.jar!/xml/Test.xml, but after it changes to network path, like http://localhost/Notepad/app/notepad.jar!/xml/Test.xml. However, the latter address doesn't work in Sun's own class com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity if offline.It tried to create new URL then connect to web server. So exception is thrown since web server is down.
    if (reader == null) {
    stream = xmlInputSource.getByteStream();
    if(stream != null && encoding != null)
    declaredEncoding = true;
    if (stream == null) {
    URL location = new URL(expandedSystemId);
    URLConnection connect = location.openConnection();
    if (connect instanceof HttpURLConnection) {
         setHttpProperties(connect,xmlInputSource);
    I am not sure whether it is a Java new bug since I only read the codes and didn't debug Sun code. But I am very curious that I have already specify <j2se version="1.5.0_12" href="http://java.sun.com/products/autodl/j2se" /> to specify update 12 for my jws application. And I also see the Java console display like following
    Java Web Start 1.5.0_18
    Using JRE version 1.5.0_12 Java HotSpot(TM) Client VM
    Why java still uses my latest jre lib to run my application?
    Edited by: wei000 on May 22, 2009 5:32 AM

  • How can I change .RDL files programmatically?

    p.MsoNormal, li.MsoNormal, div.MsoNormal
    {margin:0cm;margin-bottom:.0001pt;text-align:right;direction:rtl;unicode-bidi:embed;font-size:12.0pt;font-family:'Times New Roman';}
    @page Section1
    {size:595.3pt 841.9pt;margin:72.0pt 90.0pt 72.0pt 90.0pt;}
    div.Section1
    {page:Section1;}
    Is there any suitable collection of classes for making changes in .RDL files? I want to manipulate .RDL files for building my reports programmatically. But I have not found any programming structure or tool yet.
    The way is introduced in MSDN is not a structural way for making enormous changes in .RDL files.
    thanks,

    Hi,
    If you want to manipulate programmatically RDL files, you can use XML Schema Definition Tool and C#. (xsd.exe in Visual Studio)
    http://msdn.microsoft.com/en-us/library/x6c1kb0s(v=vs.100).aspx
    At the start of the RDL File you have:
    <?xml version="1.0" encoding="utf-8"?>
    <Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns:cl="http://schemas.microsoft.com/sqlserver/reporting/2010/01/componentdefinition" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition">
    Copy / Paste "http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition/" in your web brower and download the
    ReportDefinition.xsd file.
    After download, run this command
    xsd reportDefiniction.xsd /C
    It will generate a class file with this name reportDefinition.cs
    You can now serialize, update and save your RDL files in one a C# Object.
    I use this method to read and generate documentation about all my report, but i never change programmaticaly a report. (I'm not really sure that report server like that)
    An example to XML file reading, data changing (not a ReportDefinition Class)
    XmlSerializer serializer = new XmlSerializer(typeof(ROOT));
    // XML => Object
    ROOT myFile = (ROOT)serializer.Deserialize(reader);
    myFile.MESSAGE.HEADER[0].ORDER_NO = (i + _startIndex).ToString();
    FileStream newFile = new FileStream(this.dirName + "\\xml_generated\\XML_" + (i + _startIndex).ToString() + ".xml", FileMode.Create);
    serializer.Serialize(
    newFile,
    myFile
    I hope this information helped you, let me in touch if it's respond to your question.
    Good luck,
    Arnaud

  • Changing XML file

    All,
    I am very new to OA Framework and this is my assignment in OA Framework to customize a page.
    Basically i have to modiy a query of an LOV.
    The query is in an XML file i.e ExpenseTemplatesVO.xml
    I have two questions :
    1) Steps on how to modify this query. Can i simply change this query and copy back the XML file.
    2) I need to get Responsiblity id in this query. How can i get this?
    Any help is greatly appreciated.
    Thanks

    1) Steps on how to modify this query. Can i simply change this query and copy back the XML file.If you are planning to add whereClause then you can go for Controller extension. We never change the seeded oracle files. We always extend these classes so to retain the existing functionality.
    And if you want to add one attribute in the VO query then you have to go for View Object Substitution. You can find N number of links on Google and also search in Old thraeds.
    2) I need to get Responsiblity id in this query. How can i get this?It can be capture by using the below syntax in the extended controller:
    String respId = pageContext.getResponsibilityId();
    String respName = pageContext.getResponsibilityName();
    Thanks
    --Anil
    http://oracleanil.blogspot.com

  • I can't open .xml files from a CD using firefox. They open OK with IP, but not Firefox.

    the .xml files are on a cd, when using MS Internet Explorer they open OK, with Firefox set as defasult browser I get a message saying unable to open <filename>

    I've compaired two machines that have had this issue. One I fixed by simply reinstalling v9.3.3 off the Adobe Site. Once fixed I compaired the Registry Settings to the one that was still broken. I found that a registry setting was missing in HKEY_CLASSES_ROOT\SOFTWARE\Adobe\Acrobat. All you have to do is right click on Acrobat, select NEW --> KEY, and call it EXE. Select the newly created folder, and in the right pane, right click, select NEW --> STRING VALUE. Double click the newly created string and under the Value Data: copy and paste the following line including the qoutations. "C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe" Once you are complete, close IE and reopen it and try and open a Adobe Reader File.
    If you want the easier method you can also copy and paste the following code into WordPad and just change the file extention to .REG
    Then all you have to do is double click the file and it will insert it into the registry automatically.
    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\SOFTWARE\Adobe\Acrobat\Exe]
    @="\"C:\\Program Files\\Adobe\\Reader 9.0\\Reader\\AcroRd32.exe\""
    Hope this helps,
       Ed L.

  • Can not find xml file in classpath

    Hi,
    Can someone tell me how I can please or find a xml file in de webdynpro classpath: I have to place a xml and jar files in the classpath. The jar files are found in the application, but I get the following error: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Unable to read the License file, please verify that you have SyncExLicense.xml file and it exists in the classpath or under com/yash/license folder.
    How can I check if this file is available in the classpath.
    Richard

    hi,
    have you check that all jar files are present or not.
    because when u import par file in to nwds it wont include jar files in that manully you have to import them.
    jayesh talreja

  • How can you change property files of a EJB at Runtime?

    Hi,
    I have got an ejb and want to change my variables which I stored in property file at Runtime.
    But the property file isn´t in the jar-file of my ejb...
    How can I add it.
    Or How can I change the property file without new compilation.
    Thanks
    Uli

    Hi Uli,
    the previous post is generally correct, but without taking any part in the sensibility of this (there are valid reasons why you would not store the values in a DB) it would be necessary for you to be a bit more specific.
    Is your problem that you can not see the file from your EJB or that you don't know how to change a property file entry in general?
    Cheers,
    Kalle

Maybe you are looking for

  • Can't play audio cd in totem

    hello! the subject says all. when i insert an audio cd into my drive i can't play it with totem (totem-xine). the option "play audio cd" is greyed out. any ideas? mfg iggy

  • Create a dynamic stamp that ask the user to choose the icon to show

    I need to develop a interactive stamp.  The user should be able to enter text and a graphic that shows in the stamp.  I have been able to make this work when the stamp file is open but it would not work if I only have open the document in which I'm g

  • Copy/Paste Frames in New Layer Un-Synching from Guide

    I recently upgraded to CS4 from Flash MX 2004, and I'm experiencing a problem with something I've literally been doing for years in Flash. What I do is copy/paste keyframed animation from one layer into a new empty layer. I then trim the animation as

  • Oracle BPEL 11G performance issue

    Hi We are facing performance issues in executing our composite process in Oracle SOA 11g . We have installed an admin server and 2 managed servers in cluster in same box. The machine utilization reached almost 95% when i started the admin server and

  • PM How to define new scenarios / subscreens as selectable entries

    Hello! I've a customer who wants to use an own subscreen in PM / IW24. He wants to select it like a predefined scenario in the user default values / ref. object / scenario ... I can create new dynpros / subscreens ... no problem. But how to tell PM t