Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / November 2006



Tip: Looking for answers? Try searching our database.

Convert Text File to XML

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
billrm1 - 27 Oct 2006 18:48 GMT
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 - 27 Oct 2006 20:43 GMT
What does the structure of the text file look like?

Signature

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

>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.
hAoZ - 30 Oct 2006 17:22 GMT
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");
billrm1 - 01 Nov 2006 16:42 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.