Modify the idms file in CS Extension

I'm modifying/updating the xml attribute of .idms file. using actionscript. I'm using below approach to do that.
protected function windowedapplication1_creationCompleteHandler(event:FlexEvent):void
    var file:File = File.desktopDirectory.resolvePath('myInputFile.xml');
    var fileStream:FileStream = new FileStream();
    fileStream.open(file, FileMode.READ);// doesn't read processing instrunction
    var xml:XML = new XML(fileStream.readUTFBytes(fileStream.bytesAvailable));
    fileStream.close();
    var writeStream:FileStream =  new FileStream();
    writeStream.open(file, FileMode.WRITE);
    for each(var node:XML in xml.descendants("*"))
     if(node.localName() == "Link")
      var linkfile:String=node.@LinkResourceURI = "file:/Shared/Logos/Bk.ai";
    writeStream.writeUTFBytes(String(xml));
    writeStream.close();
    In above code problem is that it does not read processing instruction on top of xml file. in result after writing the xml file, it won't read the file as InDesign snippet file anymore and treat it that as simple xml.
Processing instrunctions are:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?aid style="50" type="snippet" readerVersion="6.0" featureSet="257" product="8.0(370)" ?>
<?aid SnippetType="PageItem"?>
Can anyone help me in figure out how I can I read the processing instrunction as well in new file ?

You need to read the processing instructions to a string and write it to a string afterwards.

Similar Messages

  • I am unable to install "Springpad extension" It states "could not be installed because Firefox cannot modify the needed file"

    I have just installed Firefox 4.0. I cannot install the extension called Springpad extension, found here: https://addons.mozilla.org/en-US/firefox/addon/springpad/
    I click add to Firefox, it downloads, prompts me that the author is not verified and I click 'Install Now'. It then says "Springpad extension could not be installed because Firefox cannot modify the needed file". What am I missing here?

    Unable to get Springpad Browser Extension to show up on my browser even though it is with-in my existing add-ons. I was having problems with the Springpad Browser Extension so I thought I would uninstall it and reinstall it but that hasn't worked. So I would like to know how to get it back so I can use it. When I go to the help button and click add-ons to search for Springpad, it does not come up in the results. So I tried using the link on my Springpad homepage website, but it didn't work. Then I searched Firefox support and found this post and tried installing it using the link here. It shows up now in my list of existing add-ons, but when I enabled it, it did not show up on my browser as a clickable icon I can use to spring a web-site. I'm stuck now!
    However, the reason for uninstalling it is there is no longer a"back arrow, the + sign, home, or scissors" at the top of the Springpad Browser Extension for Firefox? I have to log out and back in in order to get back to my notebooks because I am unable to get to them without a home button or a back button...and now I can't just click the scissors to spring a web-page. How are we supposed to spring a web-page now?
    Disappointed,
    Angela

  • Cannot install "plugin/extension name" because Firefox cannot modify the needed file. This is happening for any and every kind of plugin theme you could think of. This started when I upgraded to Firefox 11 just now.

    I just upgraded to Firefox 11.0 (unwillingly) and I get the following whenever I try to install ANYTHING at all. Themes, add-ons...it doesn't matter, the result is the same.
    "Cannot install "plugin name here" because Firefox cannot modify the needed file.
    If the fix requires installing a plugin...well, that's not going to work obviously.
    Anybody know how to fix this?

    You shouldn't see such an error.<br />
    That error usually indicates that an extension or dictionary needs to be unpacked to make it work.
    Firefox 4 and later no longer unpacks an extension automatically, but renames the XPI file to the ID of the extension and copies that file to the extensions folder in the Firefox Profile Folder.
    If an extension needs to be unpacked then there should be an unpack directive (<nowiki><em:unpack>true</em:unpack></nowiki>) in the install.rdf file of that extension
    You can try to set the Boolean pref <b>extensions.alwaysUnpack</b> to <i>true</i> on the <b>about:config</b> page.
    *http://kb.mozillazine.org/about:config
    * https://developer.mozilla.org/En/Updating_extensions_for_Firefox_4.0#XPI_unpacking

  • I keep getting the error "zotero could not be installed because firefox cannot modify the needed file". Any suggestions on how to fix this?

    After downloading Zotero (a plug in that is in theory custom-designed for firefox), I get an error message that says "zotero could not be installed because firefox could not modify the needed file". That's all the detail I have.

    You get this error if you install an extension that needs to be unpacked in order to work properly, but this isn't happening. The default is to copy the file to the extensions folder and rename the file part to the ID of the extension.
    *https://developer.mozilla.org/En/Updating_extensions_for_Firefox_4.0#XPI_unpacking
    You can try to set the extensions.alwaysUnpack pref(s) on the <b>about:config</b> page to true.
    It is possible that there is a problem with the file(s) that store the extensions registry.
    Delete the extensions.* files (e.g. extensions.sqlite, extensions.ini) and compatibility.ini in the Firefox profile folder to reset the extensions registry.
    *https://support.mozilla.org/kb/Profiles
    New files will be created when required.
    See "Corrupt extension files":
    *http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
    *https://support.mozilla.org/kb/Unable+to+install+add-ons
    If you see disabled or not compatible extensions in "Firefox/Tools > Add-ons > Extensions" then click the Tools button at the left end side of the Search Bar to check if there is a compatibility update available.
    If this hasn't helped then also delete the addons.sqlite file if present.

  • When attempting to install add-ons, Firefox generates a message saying it is unable to install add-on because Firefox cannot modify the necessary file. To what file is this referring, and how do I fix this problem?

    When I download an add-on such as Colorful Tabs and start the installation process, I receive a message that Firefox cannot install the add-on because it cannot modify the necessary file. To what file is this referring?

    That is usually caused by Firefox not unpacking the extension.
    You can try to set the Boolean pref <b>extensions.alwaysUnpack</b> to <i>true</i> on the <b>about:config</b> page.
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold (user set).
    *Preferences can be reset to the default via the right-click context menu if they are user set
    *Preferences can be changed via the right-click context menu: Modify (String or Integer) or Toggle (Boolean)

  • When going through the download process with social monkee and getting to the point of adding it to firefox I get the following message: 'Social Monkee could not be installed because firefox cannot modify the needed file'. How can this be fixed?

    When going through the download process with social monkee and getting to the point of adding it to firefox I get the following message: 'Social Monkee could not be installed because firefox cannot modify the needed file'. How can this be fixed?

    That is usually caused by a missing unpack directive (&lt;em:unpack&gt;true&lt;/em:unpack&gt;) in the file install.rdf of that extension.
    See https://developer.mozilla.org/En/Updating_extensions_for_Firefox_4.0#XPI_unpacking
    -----

  • [Add-on] could not be installed because firefox cannot modify the needed file

    I've tried both Zotero & Firefox forums with no success:
    Zotero could not be installed because Firefox cannot modify the needed file.
    I've deleted my cache, restarted firefox and computer, tried in various versions of Firefox (currently 8.0 which the add-on store says is compatible). I'm running brand new Mac with Windows for Mac 2011, have tried downloading in Safari & dropping into Firefox, from the Firefox add-ons and directly from the site. The add-ons says - unable to install & both the other methods list the above error (cannot modify the needed file).
    Thanks in advance.

    This can be a problem with the file(s) that store the extensions registry.
    Delete the files extensions.* (extensions.sqlite, extensions.ini, extensions.cache, extensions.rdf) and compatibility.ini in the Firefox [[Profiles|profile folder]] to reset the extensions registry.<br />
    New files will be created when required.
    See "Corrupt extension files":
    * http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    If you see disabled, not compatible, extensions in "Tools > Add-ons > Extensions" then click the Tools button at the left side of the Search Bar (or click the "Find Updates" button in older Firefox versions) to do a compatibility check or see if there is an update.

  • I cannt install erail.in. note is"erail pluginfor firefox could not be installed because firefox cannot modify the needed file". what should i do now

    when i go to www.erail.net for train details. message as"click here to install plugin" displayed and clicked for install then the message "erail plugin for firefox could not be installed because firefox cannot modify the needed file"
    so, further what should i do
    regards. madhu

    You usually get this error if you try to install an extension that needs to be unpacked to work properly.<br />
    Current Firefox version do not unpack an extension automatically, but rename the xpi file to the extension's GUID.
    An extension that needs to be unpacked should have an unpack flag in its install.rdf file
    <pre><nowiki><em:unpack>true</em:unpack></nowiki></pre>
    *https://developer.mozilla.org/En/Updating_extensions_for_Firefox_4.0#XPI_unpacking
    You can try to set the extensions.alwaysUnpack pref to true on the <b>about:config</b> page.
    The extension seems to install, but I haven't tested if it works.
    *https://addons.mozilla.org/firefox/addon/erail-plugin-for-firefox/

  • Add-on could not be installed because Firefox cannot modify the necessary file.

    I see that for the issue:
    <Add-on> could not be installed because Firefox cannot modify the necessary file.
    The usual fixes include:
    - ensuring that xpinstall.enabled is set to true
    - ensuring that extensions.alwaysUnpack is set to true
    What might be the non-usual fixes as I have set both to true and I still get the message above.
    I have tried installing the <add-on> after I have set the values to true, then again after restarting my browser, then again after restarting my computer and finally tried creating a new profile and repeated each of the steps after setting the 2 preferences to true.

    Can you at least update to the latest Firefox 10.0.10 ESR version?
    Firefox 10.0.x ESR:
    *http://www.mozilla.org/en-US/firefox/organizations/all.html
    So a new profile with no other extensions didn't work as well?
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    Which extension is causing this problem or can't you install any extensions at all?
    *http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
    *https://support.mozilla.org/kb/Unable+to+install+add-ons

  • Error: "FT DeepDark 11.3.1 could not be installed because Firefox cannot modify the needed file." What does this mean?

    In an earlier version (Firefox v.31) on this, and (presently) on two other PC's, I was/am able to run add-on FT DeepDark 11.3.1 without any problems. It was only recently - after updating to v.32.0.3 on this PC that this situation started. The PC in question is a Dell Dimension 8400 Intel P4 running Windows 7, though I'm thinking it may have something to do with the newer version of Firefox. Could anyone help me with this? I like this add-on because it is easier in my eyes when browsing the internet. Thanks
    PS: Attempted to install the troubleshooter, and again I received a similar error: "Troubleshooter could not be installed because Firefox cannot modify the needed file."

    This error has been reported before in this bug:
    https://bugzilla.mozilla.org/show_bug.cgi?id=730040#c21
    Please read that bug I linked you to and let me know if the last comment in the bug solves your problem. Apparently the problem is about the addon .xpi file being read-only. Try right-clicking it, going to Properties and unchecking the "Read-only" attribute box at the bottom of the dialog. Click Apply, then OK.

  • How to change the width for adf shuttle without modify the skin file

    Dear Professionals
    I haven an ADF Shuttle component in my jsp screen , How can i change the width for the two boxes without modify the skin files.(I know i can do that by skin but what i want to change one shuttle just in one screen not change all shuttles on other screens).
    Regards
    Wish79

    Okay, I didnt try with the trinidad selectmanyshuttle, but this worked for me on the af:selectmanyshuttle..
            <af:selectManyShuttle label="Label 1" styleClass="mycustcss">
              <af:selectItem label="Label1" value="value1"/>
              <af:selectItem label="Label2" value="value2"/>
            </af:selectManyShuttle>
            <af:selectManyShuttle label="Label 1">
              <af:selectItem label="Label1" value="value1"/>
              <af:selectItem label="Label2" value="value2"/>
            </af:selectManyShuttle>        And in my css file, I have
    af|selectManyShuttle.mycustcss::content { width: 800.0px;}
    The first selectManyShuttle came up very wide and the second one came up in the default width..
    Julian.

  • Problem when modifying the jar file of a portal component

    I get the umelogonbase.jar from the com.sap.portal.runtime.logon component, extract it with winzip, do not make any changes to the source code, then re-create the jar file and add it back to the component. Now, when I deploy the component to the Portal I get the following error:
    "Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    com/sap/security/core/logonadmin/IAccessToLogic.
    Exception id: 10:30_08/08/07_0012_15067450
    See the details for the exception ID in the log file"
    any idea what I am doing wrong here?
    I am doing this because I need to change the texts in the umelogonbase.jar, so this is the first step to see that the component still runs once I modify the jar file.
    Note: I create the jar file by creating a jar-type project in NWDS and then exporting the project as jar.

    Do you have JDK installed? If not then please install it by downloading from http://java.sun.com/j2se/1.4.2/download.html. Install it in your local machine. Then inside the installation folder\bin folder you will find the jar.exe.
    Also create the environment parameter named JAVA_HOME and set the value as the installation directory of JDK for example JAVA_HOME=C:\j2sdk1.4.2_13. Also add the following to your Path environment variable
    C:\j2sdk1.4.2_13\bin;C:\j2sdk1.4.2_13\lib;
    these path names should vary depending upon your actual JDK installation folder name.
    Regards,
    Shubho

  • Modify the output file created by F110

    hi everybody
    I have to modify the output file (in text format) created by tcode F110.
    I have looked in the program rffous_t but could not see where I have to actually change the layout of the display of the fields
    can anybody help me out in this issue?
    thanks a lot for your help
    prema

    Hi vinraaj
    thanks a lot for the information
    One more question, if i have to modify the formats of the file, do i have to modify the event module for payment medium formats
    theres an event module FI_PAYMEDIUM_ACH_20, I have to change the codes, how do i proceed?
    do i make a copy of the event module and then modify the codes or there is other ways to do it
    thanks a lot for your help

  • Should I modify the camera file to change the greyscale resolution of my Photonfocus camera from 8 to 12 bits?

    I have some difficulties to use my Photonfocus camera with 12 bits greyscale resolution.
    I have a Photonfocus camera MV-D1024E-160-CL-12, a NI PCIe-1429 frame grabber, PFRemote 2.0 and Measurement & Automation Explorer 4.2.1.3001.
    If I work with 8 bits greyscale resolution (PFRemote -> Data Output: Resolution : 8 bit) and look at the image with MAX (Système -> Périphériques et interfaces -> NI-IMAQ Devices -> img0: NI PCIe-1429 -> Channel 0: PhotonFocus MV-D1024-160 (file in attachment), everything is working.
    Now I'd like to work with 12 bits and I don't know exactly what I have to change? I've tried to change only the resolution in PFRemote (PFRemote -> Data Output: Resolution : 12 bit) but then the image in MAX remains a 8 bit resolution. Then I've tried also to modify the camera file (file in attachment). I've put the "BitDepth" and the "BitsPerComponent" at 12 instead of 8 and the "BinaryThreshold" to (0,4095). But when trying to grab an image in MAX, an error occured: "Error 0xBFF600FE Le nombre de bits par pixel requis est invalide".
    Should I really modify the camera file in order to grab 12 bits images? Or what should I do?
    Thank you
    Mélanie
    Attachments:
    PhotonFocus MV-D1024-160.txt ‏5 KB

    Hi toto26,
    Thank you very much for the information. I did exactly the same thing as you suggested for 8-bit, and I were able to change the resolution (number of pixels), exposure time, frame rate without any problem. I understand that I need to coordinate the MAX icd file and the settings of PFRemote.
    When I tried to switch to 12-bit, I found that I need the camera file (.icd) for 12-bit. I tried the attached icd in the previous discussion (Photonfocus MV-D1024E-160-CL-12 12-bit 1429 X4 only.zip 2 KB). There was an IMAX Error: Error 0xBFF6002C, FIFO overflow caused acquisition to halt. Then I think maybe this camera file is not good for me because I have a PCIe-1427, instead of a PCIe-1429. 
    So, I downloaded the camera file generator (from the same link you suggested) to create my own camera file. When I run the generator, the first window popped out was for camera setting, and there was no Photonfocus in the choice for the Manufacturer. Is it true that I cannot create camera files for Photonfocus camera, or I simply don't know how to use the generator?
    Thanks again for the help and I look forward to more advices.
    Regards,
    Hasi

  • Modifying the configuration files in OBIEE 11g

    Hi
    We are facing an error when we tried to to add "<DashboardMaxBeforeMenu>" tag in the instanceconfig.xml manually and restart the presentation services of OBIEE 11g .
    I had come across few suggestions that, configuration files in OBIEE 11g cannot be modified manually. I am doubtful on these suggestions . So please, let me know for sure wether we can modify the configuration files in OBIEE 11g manually or not.
    It will be very helpful if the process to modify the configuration files in OBIEE 11g is shared with us.
    Thanks.

    Hi,
    I could not tell you whether the; <DashboardMaxBeforeMenu>10</DashboardMaxBeforeMenu> still works in 11g.
    What I do know is that you could manually edit the configuration files. The only thing is when you modify this file via the Enterprise Manager, your customizations get lost. You have to manually add them again.
    Cheers,
    Daan Bakboord
    http://obibb.wordpress.com

Maybe you are looking for

  • How to change the g/l a/c being used while doing goods issue using migo

    when I pass a migo entry whilie purchasing material      , the entry goes through stock      stock (230000 a/c no)    150        dr       GR/IR (150000 a/c)      150        cr when I issue material after reservation for which again migo is done     e

  • Jar File caching in temp directory problem

    Hello, I have a problem where the java plugin is caching jar_cache9999.jar (where 9999 is any number 0-9) files in the temp directory. I have tried following the directions for disk caching in the documentation, but these files are always created, ne

  • Comparing Internal tables

    Hi Expert,                    i have two internal tables , i have to comapre a field which have no value in other it- tables. e.g. it_tab1-posnr have value 10,20,30,40,50. it_tab2-posnr have value 10,20,30,40. i hav to put a condition when some posnr

  • I need idea to create search text in list

    Hi Experts, I am have one HasMap, which contain ID as key and name as value. In that Map i need to find out name which starts with 's' character. Example: 00001, Satya Sunil 00002, Munna Prasad.--------- This is input in HashMap. Just i gave 2 rows f

  • Tiger won't install!!!

    I just bought a copy of Tiger for my iBook G4, but when it gets past language chooser it says 'This software cannot be installed on your computer'. I find it quite absurd that Apple let it do this. What can I do? Otherwise my copy of Tiger is complet