Menu

Is it possible to create an XML File ?

Help
2009-02-18
2012-09-14
  • Moise Marciano

    Moise Marciano - 2009-02-18

    Hi,

    i want to import the result of switch map in an another tool.
    is it possible to generate an xml file instead of the html file ? if yes, is it possible to define the format ?

    Regards

     
    • Pete Siemsen

      Pete Siemsen - 2009-02-19

      It is certainly possible :-)

      It would involve writing another output routine. Of course, the first step
      would be to define the format, a.k.a. XML DTD. If you'd like to write a
      new output routine, I'll be happy to integrate it into the distribution
      so that others can benefit from it.

      This would not be very difficult. This isn't the first time that
      I've been asked to output other formats. I wrote the WriteNcarFiles.pm
      module in response to such a request at my site. That module writes
      the data as a .csv file. Comma-separated-value files are a
      "standard" format that, like XML, require a schema of some sort.
      The WriteNcarFiles.pm file contains a mercifully small amount of code.
      I think it could be copied to a module named, say, WriteXmlFile.pm,
      and less than 100 lines of code would need to change to make it
      produce an XML file.

      What is the tool you'd like to export to, and is there an existing
      definition of the XML format that the tool can import?

       

Log in to post a comment.

MongoDB Logo MongoDB