Hello guys,

I need help with this, I have to creat an XML file that contains the following flags, Each row is a separate flag with a space separated list of conditions, there are up to 5 rows:

Undef F0 F1a F1b F2 F3 F4 F0-2 F1a-2 F1b-2 F2-2 F3-2 F4-2 (Micro) Undef Nom Cand CO PeO CWorks Instd RFSA Integd OnAir PA OnAirCarr OnAi +rProv Include Exclude Undef Z1I Z2E Z3E Z4I Z4A Z2A Undef 900 1800 Co-located Swap 900micro 1800micro
I want to write a script to creat that XML and then to produce that XML,the script needs to read the flag file above and print the XML (simple print commands will suffice). (with C# or Perl would be preferrable).

Can any one help pls

Code and paragraph tags added by Arunbear


In reply to Assistance in writing an xml generating script by Anonymous Monk

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.