artist has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I would like to do:
1. Create XML file from some raw-data. ( format well specified) 2. Create serveral HTML files out of it 3. Add some more data to XML file in step 1. ( format well specified, +but different than step 1) 4. Create/Update HTML files in step2 only with those data which are ad +ded in step 3. 5. Mark those HTML files which are created/updated. 6. Send the new files to the server.
Thinking about XML::Write, Net::FTP etc..
Your suggestions would be helpful.

Thanks
Artst.

Replies are listed 'Best First'.
Re: Update Structure
by chromatic (Archbishop) on Dec 01, 2001 at 03:13 UTC
    I'm not sure exactly what you're asking, but here's some additional advice.

    If you don't need XML files now, skip that step. (You might need them if you have XSLT or CSS files to apply to the XML to create HTML, or if you need an archive for the future.) If that's not currently the case, skip the intermediate step and just generate HTML.

    Other than that, the data format for your input files and inside your program will dictate what kind of XML creator you can use. If it's possible that you can use the same intermediate format in steps 1 and 3, do that. That means you'll have a function to interpret data format #1 and another to interpret #3. You'll probably have one to format XML (or just HTML).

    Getting the intermediate data format right is the trickiest part. Good luck.

      Thanks for the suggestions..
      I have tried to use Storable.pm and that has been helpful.
Re: Update Structure
by dragonchild (Archbishop) on Dec 01, 2001 at 02:14 UTC
    1. Define the types of updates you wish to do to these XML and HTML objects
    2. Learn about (and, if they don't exist, write) methods that do this for you already
    3. Describe (in some design methodology you like, which could be ad-hoc or on-the-fly) how you wish to use said methods
    4. Use said methods

    ------
    We are the carpenters and bricklayers of the Information Age.

    Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.