1 Reply Latest reply on Oct 21, 2006 12:44 PM by NSurveyor

    writing out XML from Flash

    Goo101 Level 1
      Hi There,
      I'm writing out some XML data to a file with an extension .rsf. Which contains the settings that enable an .exe to run automatically using these settings. However, when Flash writes out the XML data, it doesn't format it in any way so that it looks like . . .

      <?xml version="1.0"?><RipstationSettings><DiscCount>3</DiscCount><Drive>D: DVDRW IDE1008 0055</Drive><OutputSettings><Enabled>1</Enabled><Root>C:\Local Audio</Root><ImagePath>%C\MP3\%A\%D\Folder.jpg</ImagePath><FilePath>%C\MP3\%A\%D\%N - %T.mp3</FilePath><Format>2</Format><Bitrate>224</Bitrate><Quality>7</Quality><VBR>0</VBR> <Lossless>0</Lossless></OutputSettings><DefaultFilenamesEnabled>1</DefaultFilenamesEnabled ><MasterPathEnabled>1</MasterPathEnabled><MasterPath>C:\Local Audio</MasterPath><MetadataTotalTracks>0</MetadataTotalTracks><MetadataUTF16>1</MetadataU TF16><MetadataUnidentifiedAction>0</MetadataUnidentifiedAction><MetadataUuseAmazon>0</Meta dataUuseAmazon><DataCompany></DataCompany><DataSoftware></DataSoftware><LoggingMetadata>0< /LoggingMetadata><LoggingBatch>1</LoggingBatch><SourceDevice>0</SourceDevice><TargetDevice >0</TargetDevice><GroomingGenre>0</GroomingGenre><GroomingCapitalize>0</GroomingCapitalize ><GroomingComposers>0</GroomingComposers><GroomingAppendArtist>0</GroomingAppendArtist><Sq lServer></SqlServer><SqlDatabase></SqlDatabase><SqlUsername></SqlUsername><SqlPassword></S qlPassword><SqlEnabled>0</SqlEnabled></RipstationSettings>

      This causes the launch of the exe to fail because it relies on line feeds in order to be able to read the XML data properly. So, in order for the exe to run, the XMl data written out to the .rsf file should look like the attached code below . . .

      Is there any way to ensure that the XML data is written out to the .rsf file with line feeds?