Saving XML to a local text file

Hi,
Can anyone tell me of a method i can use to save XML to a
local text file in the same directory as my swf file?
Jesper

You need to use an SWF2EXE application to save out the XML
file. These are basically wrapper applications for your SWF that
allow interaction with the operating system.
There are several on the market. I've been using mProjector
from screentime (
http://www.screentime.com/)
to read and write XML, but there are others to choose from. Do a
web search for SWF2EXE and you'll get a number of hits.
Good luck...
mick

Similar Messages

  • Unable to Open Bookmarks to Local Text Files in External Editor

    In MSIE, it's absolutely no problem to create bookmarks to open local text files in an external editor.
    In Firefox, bookmarked local text files are opened in an internal browser window – and unbelievable enough, there seems to be no way to change this behavior :(
    Does anyone have an idea how I can manage to bookmark local files with Firefox in a way so that these files are opened in external applications?
    Editing the MIME type handling didn't succeed so far, as the handling of internal MIME types (text/html, text/css, text/plain etc.) unfortunatly overrides any configuration similar to the handling of external MIME types (image/jpg, video/avi etc.) = editing the mimeTypes.rdf or the like doesn't come to any effect.

    Since Firefox didn't seem to make any difference between local files and server files (as opposed to MSIE, which does) I saw the only chance to alter the unwanted behavior in changing the MIME type handling – but however, this didn't succeed even for server files, since the handling of internal MIME types like text/plain apparently can't be changed anyway ... which we do not have to understand :|
    I already edited the values view_source.editor.external and view_source.editor.path ... unfortunately this only has effect on viewing source code (e.g. by Ctrl+U), but not on the loading of txt-files; neither locally (file:///) nor remote (http://).
    If this could be influenced in the same way as source code viewing, that would be the solution.

  • Change RSS text to local text file

    I'm building a flash file which currently has a RSS feed as its text source.  I believe this is the code which pulls that file:
    private const RSS_URL:String = "website address";
    Since I am so new to ActionScipts (by the way I am on Flash Professional CC) I just don't know how to go from pulling RSS to taking the text located in a local text file. 

    that's a file name, not a url.
    find the code that loads RSS_URL and post that.

  • Saving report as PDF and text file

    Currently, I saved my report as PDF. It opens in Acrobat reader automatically when the report is executed. Is there a way for me to save it as PDF and as a text file at the same time? (without having to open the file in Acrobat reader and saving it)

    You can add your PDF and TEXT file formats to a distribution list (Instead of GENERATE REPORT TO A FILE). To do this:
    1. Go to your Object Navigator and highlight your report.
    2. Right click on your report. Select Property Palette.
    3. Select Distribution
    4. You can add of of the formats that you want to print or save to the report to.
    5. You will have to add Distribution Id (any number starting with 1) where you want the file to be saved (c:\my_reports\inventory.pdf), the type of file: PDF and how many copies you want: 2
    6. Click OK after finishing...
    To make it work ... You would highlight your report from your Object Navigator and then choose FILE-DISTRIBUTE and this will save it to all the files your specified and/or printer.
    null

  • Saving SQL+ output to a text file

    I have to use SQL+ on one of my databases. No way around it. So I will write my queries, run them, check the output, tweak them and run again as necessary. So I might start with
    SELECT
    ename,
    job
    FROM
    emp;Once I know it is working correctly, I wrap it in a procedure so I can get the data in a text file:
    SET TRIM ON
    SET PAGESIZE 2000
    SET SERVEROUTPUT ON SIZE unlimited
    EXEC DBMS_OUTPUT.ENABLE(null)
    SPOOL c:\mySQL\out.txt
    BEGIN
    DECLARE
    CURSOR c_cur IS
    SELECT
    ename,
    job
    FROM
    emp;
    BEGIN
    DBMS_OUTPUT.PUT_LINE(
    'NAME|JOB|'
    FOR r_cur IN c_cur LOOP
    DBMS_OUTPUT.PUT_LINE(
    r_cur.ename||'|'||
    r_cur.job
    END LOOP;
    END;
    END;
    /Then I import this into Excel as delimited data on the pipe |
    which works great until I decide that I actually do need one more column. Then I have make changes to the SQL, and two more changes in the output portion (one for the heading, and one for the LOOP)
    I was wondering if anyone had written a cool procedure that I could run ANY SQL through, and it would automatically know my column names write the headings and then loop through the data automatically.
    I'm not tied to using the exact procedure I described above. The key is, I am looking for a general procedure that I can run any script through, and it will handle the output for me, without additional modification.

    MrGibbage wrote:
    I have to use SQL+ on one of my databases. No way around it. So I will write my queries, run them, check the output, tweak them and run again as necessary. So I might start with
    SELECT
    ename,
    job
    FROM
    emp;Once I know it is working correctly, I wrap it in a procedure so I can get the data in a text file:
    SET TRIM ON
    SET PAGESIZE 2000
    SET SERVEROUTPUT ON SIZE unlimited
    EXEC DBMS_OUTPUT.ENABLE(null)
    SPOOL c:\mySQL\out.txt
    BEGIN
    DECLARE
    CURSOR c_cur IS
    SELECT
    ename,
    job
    FROM
    emp;
    BEGIN
    DBMS_OUTPUT.PUT_LINE(
    'NAME|JOB|'
    FOR r_cur IN c_cur LOOP
    DBMS_OUTPUT.PUT_LINE(
    r_cur.ename||'|'||
    r_cur.job
    END LOOP;
    END;
    END;
    /Then I import this into Excel as delimited data on the pipe |
    which works great until I decide that I actually do need one more column. Then I have make changes to the SQL, and two more changes in the output portion (one for the heading, and one for the LOOP)
    I was wondering if anyone had written a cool procedure that I could run ANY SQL through, and it would automatically know my column names write the headings and then loop through the data automatically.
    I'm not tied to using the exact procedure I described above. The key is, I am looking for a general procedure that I can run any script through, and it will handle the output for me, without additional modification.Why are you bothering with the PL/sql procedure at all? Why not just
    SET TRIM ON
    SET PAGESIZE 2000
    SPOOL c:\mySQL\out.txt
    SELECT
    ename,
    job
    FROM
    emp;
    spool off

  • Air App will not read local text file using openAsync/readUTFBytes on user (non-admin) mode

    I am running an Air App I did for the desktop, from the actual installed executable already deployed in the machine (Not from Flash Pro / Flex dev. environment). For some reason the app will not read a text file stored in the same application folder unless I run my app as administrator from the OS.
    When I run the app as admin, or within the development environment it works fine. Maybe this is related to some security issue? I read the adobe air documentation, and this should work...
    I am using openAsync/readUTFBytes on user as shown here:
    var continueGamesConnection:FileStream();
    var continueFile:File = new File(File.applicationDirectory.resolvePath("continueGames.txt").nativePath.toString()); 
    continueGamesConnection.addEventListener(Event.COMPLETE, openSavedGames);
    continueGamesConnection.openAsync(continueFile, FileMode.UPDATE); 
    function openSavedGames(event:Event):void
         continueGamesConnection.removeEventListener(Event.COMPLETE, openSavedGames);
         var content:URLVariables = new URLVariables();
         var loadedContent:String = new String();
         loadedContent = continueGamesConnection.readUTFBytes(continueGamesConnection.bytesAvailable);
         content.decode(loadedContent); 
         variableX = content. variableX
         //etc, etc. 
         continueGamesConnection.close();
    By the way, I have also, tried using FileMode.READ, and others, and it still gives me the same problem. Only works if ran on admin mode or from the dev. environment.
    It's very frustrating, I tried reading other posts without any luck... What solutions do people use for this kind of problem?
    I have seen that you can set the app to run as admin somehow, and I guess that could work. However, this should work just fine, since it doesn't seem to violate any of the security APIs of Air. Seems like an overkill. But even so, how do I do that?
    You help is greatly appreciated!

    Thanks kglad.com. I will try this and see if it works. Can you check my code a bit to see if it's right?
    var continueFile:File = new File(File.applicationStorageDirectory.resolvePath("savedgames/continueGames.txt").nativePath.toString());
    Does this look right to work across all desktop OS?

  • How can I use the FTP server on Oracle XML DB for plain text files?

    Hi,
    I need to generate comma separated files for download via FTP. The files are generated from Oracle Table data and should be published on a FTP Server. Would it be able to use the FTP Server on Oracle XML DB?
    If not, any suggestions?
    Thanks
    Frederik Christensen

    You can create a temporary CLOB with your CSV content, and then folder the CLOB into the XDB repository with DBMS_XDB.createRESOURCE()...
    This would work fine....

  • Saving forms data in a text file

    hi guys,
    is it possible to save current forms data in a file just before commiting it into database and flushing out??????
    2ndly is it possible to take out the print of current form without printing its background(canvas or background pics etc) coz its very time consuming & expensive if u simply take out the print of a form while using a Dot-Matrix Printer.

    You can change the background color of the canvas to white before you print:
    Set_canvas_property('CANVAS0',background_color,'r255g255b255');

  • Can't open a document saved as a text file

    I recently saved a document as a text file because I wanted to send it to some Windows users. Now, a few days latter when I try to open the document it is in code/ASCII thereby unreadalbe. I had one of the people I sent it to send it back to me, which he did with a .doc extension. I cannot open it either. I don't have Word. Is there anyway I can open this document. And . . what am I doing wrong so I don't do this again.
    Also if this topic has already been address please excuse me. My search didn't bring up anything. Thanks.

    Welcome to Apple Discussions
    You shouldn't have a problem opening a text file, but there are a couple of things that could be causing a problem. First, make sure the AppleWorks 6 application is in the AppleWorks 6 folder in Applications and that the folder also contains the AppleWorks Essentials folder. In the AppleWorks Essentials folder is a folder named Translators. I the application & the translators are not in the same AppleWorks 6 folder, they won't be able to "make a connection." This may also let you open a .doc file, but I can't guarantee it as Microsoft has made significant changes in the last couple of years causing AppleWorks' .doc translator to fail.
    Also, try adding .txt to end of the file name. This will let OS X identify the file as text &, if nothing else, will allow TextEdit to open it.

  • Text File Data not Displaying completely

    Hi All,
    Have one issue. The program correctly extracts the data & export to Excel. All column /field data's are dispalying.However while saving this data in a text file in Aplications server file path, though all column/ field data are extracting bit it is not displaying complete column/field data's i.e last 3 or 4 column data's are not displaying after 257 character space  (but actually it extracts data.It is just not dispalying while i am checking text file via AL11).
    What could be the reason of not dipslaying the all column/filed values in text file wherea as while exporting to excel it is displaying? is there any character length constraint for text file?
    Thanks

    >
    Debabrata wrote:
    > What could be the reason of not dipslaying the all column/filed values in text file wherea as while exporting to excel it is displaying? is there any character length constraint for text file?
    There is no restriction on the file size which you can upload on the app server. AL11 is nothing but a report program & there is a limitation on the max number of characters displayed on the page.
    BR,
    Suhas

  • Writing in to a Text file in Vista 32 OS

    Dear Friends,
    I have developed a standalone ticker in Adobe AIR, in that
    iam storing setting options in a local text file. It is working
    fine in XP.
    but when i install my application(ticker) in Vista32 OS,
    when i do changes in my setting file, i have to write the changes
    in local text file. it is not writing the modified setting text in
    the text file. my coding is:
    function writefile() {
    tempscr1=3;
    var finalstr2:String =
    "smallwinmode="+smscr+"&speed="+setmc.tickeropt.sld.s.value+"&alert="+altval+"&maxi="+max ifeed+"&alwtop="+setmc.tickeropt.aifch.selected+"&prescr="+tempscr1+"&prescrx="+newwindow3 .x+"&prescry="+newwindow3.y+"&firstinstal="+fins;
    var dskTopFileStream2:FileStream = new FileStream();
    var dskTopFile2:File = File.applicationDirectory;
    var fileString2:String = (dskTopFile2.nativePath +
    "\\settings.txt");
    dskTopFile2 = dskTopFile2.resolvePath(fileString2);
    dskTopFileStream2.openAsync(dskTopFile2, FileMode.WRITE);
    dskTopFileStream2.writeUTFBytes(finalstr2);
    dskTopFileStream2.close();
    Anybody can help me. if it works in Vista also i can release
    my product, i got struct up... kindly tell me should i change my
    coding to write txt file in Visa? pls help me....
    Thanks in advance,
    Syed Abdul Rahim

    Your user probably doesn't have permission to write to the
    application directory. The OS is right to protect the program
    directory.
    You should be writing data files into the user's home
    directory somewhere. All of the other "somethingDirectory"
    properties of File name such directories. For files that the user
    doesn't actually work with directly, I prefer
    applicationStorageDirectory myself. For files you are writing out
    for the user to see, I'd use documentsDirectory instead.

  • Inserting line in a Text file using java

    Hi,
    I am working on a project in which the some data is required to be stored in a text file. I have lines of data in the file and I read 1 line at a time. So now I need to insert some lines of text in between. How to do this ??
    Now i'm using a temporary file and then after creating the data I replace the original file with the new one. But want to know is there any better way to do that same..?!?!

    Ok.. If I maintain a data in XML format, is it
    possible to insert a node. I'm using Xerces and DOM
    api for handling xml data.
    As a file, XML is just a text file so you insert as you would any file.
    Once parsed to a DOM model then sure you can insert nodes. Just look at the Javadoc for XML Document, Element, Node etc.

  • How to retrieve a text file

    I am doing an assignment where I am running two "identical" servers on different computers (same network), so that reliability is increased. I have to take into consideration if one were to go down, how do we update the lost information. Right now I have my program saving critical data to a text file, and I am trying to find a way to retrieve that text file. I am writing in java 1.5. thanks in advance.
    Fred

    how do I implement a database? My main problem here is that if say one server is down and one is up, and a user updates information on the server, when the first one comes back up, it must also be updated. the system consists of
    client-->frontendserver (via java sockets)
    then frontendserver-->two servers (via Java RMI)
    I can assume the frontendserver will not crash, but I am not allowed to store data on it. Thanks for the help so far

  • While saving alv report to local file(excel) OA number not coming fully..

    HI,
    actually in my aliv report output OA no contains 10 characters (0010100276) but after saving into local file (excel) , it appearing in excel file only 7 characters(1010027) any one plz tell what is the reason how we rectify it.......
    with regards
    Ganesh.

    Hello Ganesh,
    When you export the file from SAP to your PC, select "unconverted" radio button.  Enter a file name and path, then save it with a text file (.txt) extension.  Then do the following steps on your PC.
      1.  Open the Excel application.
      2.  Open the text file in the application.  The system will automatically open the text import wizard.
      3.  Select "Fixed Width", then press next pushbutton.
      4.  After you parse the columns, press next pushbutton.
      5.  Go to the column where you want to keep leading zeros.  Select "Text" in the "Column data format" box.
    Kind Regards,
    Rae Ellen Woytowiez
    Edited by: Rae Ellen Woytowiez on Mar 8, 2011 4:27 PM

  • Reading String (Name-Value) from text file into XML

    Hi,
    I have a requirement for reading a text file and converting each entry of that text file into XML format. I have not came across such thing yet so looking for some ideas. I am using SQL Server 2005 and here is a sample entry from my source text file,
    Jun 4 14:31:00 zzzz64x02 fff:
    INPUT(ty=XYZ,Prefix=15063,dn=78787878787878,sgk=100.139.201.48,xxn=87878,ani=656565656565,ogrp=F7ZX05,ogtxt=NNNNN,ogx=NNNNN,oci=0xe00ac,ogi={NOA=INT,BC=1,SIG-TYPE=ZIP});
    PROCESS(ty=0x100000,cu=32880,Name=XOXOXOX,pc=88017,pd=24,dd=880175,pk=880175,rd=115472,ca=BGD,reg=RW,cdp=1,ai=245359,grp=2648,sl=9);
    OUTPUT(ty=XXXX,ret=0,rl=
    {i=1,su=99999,rizID=61084,skid=06,truckgp=1084,dd=8801,dn=78787878787878}
    I will get multiple entries like this in my source text file which I have to convert into XML (using TSQL).
    Any help will be useful.
    Regards.
    'In Persuit of Happiness' and ..... learning SQL.

    And I'm telling you that this is a bad option. You would use the vaccum cleaner to wash the dishes, would you?
    If you for some reason would do this task in SQL Server, you would implement it as a CLR stored procedure, but from what you have said I don't understand why you would do this server-side at all.
    What's wrong with the current C# solution?
    Erland Sommarskog, SQL Server MVP, [email protected]
    Got it.  I was just looking for the available options, nothing wrong with my C# solution. And yes, I don't use vacuum cleaner to wash dishes.
    'In Persuit of Happiness' and ..... learning SQL.

Maybe you are looking for

  • ICal (Calendar.app) - Is My Current-Time Marker Missing? Feature Dropped?

    Hello iCalers, I recently made the switch to Mountain Lion from Snow Leopard. I was quite a fan of iCal in Snow Leopard-it was one of the reasons I downgraded to Snow Leopard from Lion-but since I have a newer computer that doesn't allow Snow Leopard

  • Cisco Jabber Client for Windows 9.7 Can't Connect to Other IPSec VPN Clients Over Clustered ASAs

    Environment: 2 x ASA 5540s (at two different data centers) configured as a VPN Load Balancing Cluster Both ASAs are at version 8.4(5)6 IPSec VPN Client version: 5.0.07.440 (64-bit) Jabber for Windows v9.7.0 build 18474 Issue:   If I am an IPSec VPN u

  • How do I revert from Mavericks to Mt. Lion?

    I have tried the suggestions contained in similar threads without success.  My configuration may be causing problems.  Here is my configuration and the pathway I would like to use: As shown below, I have a MacPro early 2008 running OSX 10.9.  I have

  • Converting pic to line art

    I'm about to purchase some scale models I want to photograph, then turn the photos into line art so I can make alterations to them. Is it easier to turn a picture that is mostly white or very colorful into line art using Photoshop? Thanks guys!

  • Div Nav Bar problem in IE but Chrome is perfect

    In CS6, Div Rollover image navigation bar becomes broken in Internet Explorer (IE10 - Standards): but is perfect in Chrome: HTML code is as follows: How do I fix this?