2 Replies Latest reply on Nov 28, 2010 1:29 PM by Whitetimer

    Convert xml to csv file ?

    Whitetimer

      Hi All

       

      I'm stuck on a problem, i can read an csv file into an app and output as an xml file, but how can i do the opposite, read in an xml file and output as a csv comma delimited file ?

       

      This is the xml structure of two seperate files i have

       

      <profile>     
           <command name="" phrase="" successphrase="" sndok="">
           <key extended="" qual="" pause="" repeat="" duration=""/>
           </command>
           <command name="" phrase="" successphrase="" sndok="">
           <key extended="" qual="" pause="" repeat="" duration=""/>
           </command>
           <command name="" phrase="" successphrase="" sndok="">
           <key extended="" qual="" pause="" repeat="" duration=""/>
           </command>
      </profile>
      

       

      The Second XML structure is like this

       

      <SimBase.Document Type="Controls" version="1,0" id="Standard">
        <Descr>Controls Mapping File</Descr>
        <Filename>Standard.XML</Filename>
        <SimControls.Map>
          <Name>KEYBOARD_MAIN</Name>
             <Entry>
               <Key></Key>
               <Down></Down>
             </Entry>
             <Entry>
               <Key></Key>
               <Down></Down>
             </Entry>
             <Entry>
               <Key></Key>
               <Down></Down>
             </Entry>
             <Entry>
               <Key></Key>
               <Down></Down>
             </Entry>
        </SimControls.Map>
      </SimBase.Document>
      

       

      Thanks for the help

       

      Whitetimer