Convert Text File to XML

Ask a Question related to Macromedia Flash Data Integration, Design and Development.

  1. #1

    Default Convert Text File to XML

    I need to open a text file, parse it and convert it into XML using Flash. Is this possible with Flash 8 Pro? If so can someone point me in the right direction?

    Thanks.
    billrm1 Guest

  2. Similar Questions and Discussions

    1. convert a file from pdf version 1.4 to 1.3.Originally an Indesign file
      is it possible to convert a file from pdf version 1.4 to 1.3. Originally it was an Indesign file. Many thanks in advance
    2. What is the best way to convert an InDesign file to an Illustrator file??
      When I try exporting as an eps, all the images have been broken up into non colored pieces and the fonts are screwed up? I just want everything to...
    3. How do I convert a pdf to excel or to text
      I have a pdf file and need to get the data into a format that allows me to manipulate the data. Is there away I can get Adobe to do that?
    4. convert text to text field
      I'm using Director 8.5.1 on Windows XP I'm trying to make pages of an old .dir printable, but the text wasn't created in text fields. Print o...
    5. rasterize/path text/convert text to art
      I need to be able to convert text to art or path my text for HTML newsletters I build in another program. Anyone? I have been creating text boxes...
  3. #2

    Default Re: Convert Text File to XML

    What does the structure of the text file look like?


    --

    Dan Mode
    --> Adobe Community Expert
    *Flash Helps* [url]http://www.smithmediafusion.com/blog/?cat=11[/url]
    *THE online Radio* [url]http://www.tornadostream.com[/url]
    *Must Read* [url]http://www.smithmediafusion.com/blog[/url]


    "billrm1" <webforumsuser@macromedia.com> wrote in message
    news:ehtgom$hmf$1@forums.macromedia.com...
    >I need to open a text file, parse it and convert it into XML using Flash.
    >Is this possible with Flash 8 Pro? If so can someone point me in the right
    >direction?
    >
    > Thanks.

    dan mode ->Adobe Community Expert Guest

  4. #3

    Default Re: Convert Text File to XML

    If this text file is already in xml format, you can use the method
    XML.parseXML. Assuming you are going to read the text on your own computer, see
    the following attach code

    loadText = new LoadVars();
    loadText.onData = function(dat) {
    myField.text = rdat
    };
    loadText.load("yourfile.txt");

    hAoZ Guest

  5. #4

    Default Re: Convert Text File to XML

    It is a flat file with a header record and an unlimited number of detail
    records. The fields are fixed lenght and padded with spaces. I also have one
    file that is that is binary and must be read before it can be parsed.

    billrm1 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139