I use XML::Simple to generate/parse data streams for a Network Monitoring application. Since I have pretty much complete control over both ends of the pipeline, I can get away with very simple XML structures to pass data between my various plugins.

At the other extreme is a "display" generator for banking system, where I don't have control over what is coming into the pipe. The application reads a Data Stream and builds an XSLT template to parse and format the stream for an output 'device'. The device may be another application (with a different data structure), a browser (there are three accepted, 'company standard' browsers, each with its own set of quirks to be coded for), a backup device (with the data formated for storage efficiency rather than Human readability), a virtual device (I haven't a clue what is on the other end of the pipe, convert everything into cannonical form and ship), a plotter/printer (several kinds), etc.

This one started as an XML::Simple application and quickly got out of hand. The second system was based on XML::Tree, and it is starting to have some issues. We may have to fall back to building something unique from XML::Parser, but all the votes aren't in yet.

----
I Go Back to Sleep, Now.

OGB


In reply to Re: Uses for Perl & XML by Old_Gray_Bear
in thread Uses for Perl & XML by BaldPenguin

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.