all groups > flash data integration > october 2006 >
You're in the

flash data integration

group:

Convert Text File to XML


Re: Convert Text File to XML dan mode ->Adobe Community Expert
10/27/2006 1:43:34 PM
flash data integration:
What does the structure of the text file look like?


--

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


[quoted text, click to view]

Convert Text File to XML billrm1
10/27/2006 5:48:06 PM
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?

Re: Convert Text File to XML hAoZ
10/30/2006 4:22:40 PM
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");
Re: Convert Text File to XML billrm1
11/1/2006 3:42:13 PM
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.
AddThis Social Bookmark Button