You are right - an example of the input XML would have made this more interesting. I didn't include it because the program is not free and I didn't want to get into a situation where I could be accused of publishing proprietary (or at least fee-based) data in a public forum. Nonetheless, I created an example based on the original input file using fictitious data. The original XML file is much larger of course, but hopefully this will suffice.

<?xml version="1.0" encoding="UTF-8"?> <NonCashDetails verNo="" year=""> <Category name="Appliances"> <Category name="Household (Small)"> <Item desc="Air Purifier" fmv="11.11" itemNum="120" name="Air Purifier" quality="Like New" /> <Item desc="Air Purifier" fmv="10.01" itemNum="120" name="Air Purifier" quality="Minor Wear" /> <Item desc="Air Purifier" fmv="9.09" itemNum="120" name="Air Purifier" quality="Average Wear" /> <Item desc="Bathroom Scale" fmv="9.01" itemNum="116" name="Bathroom Scale" quality="Like New" /> <Item desc="Bathroom Scale" fmv="7.65" itemNum="116" name="Bathroom Scale" quality="Minor Wear" /> <Item desc="Bathroom Scale" fmv="4.32" itemNum="116" name="Bathroom Scale" quality="Average Wear" /> </Category> </Category> <Category name="Clothing"> <Category name="Baby"> <Category name="Accessories"> <Item desc="Belt" fmv="1.25" itemNum="238" name="Belt" quality="Like New" /> <Item desc="Belt" fmv="0.95" itemNum="238" name="Belt" quality="Minor Wear" /> <Item desc="Belt" fmv="0.73" itemNum="238" name="Belt" quality="Average Wear" /> </Category> <Category name="Activewear"> <Item desc="Shorts" fmv="2.35" itemNum="249" name="Shorts" quality="Like New" /> <Item desc="Shorts" fmv="1.58" itemNum="249" name="Shorts" quality="Minor Wear" /> <Item desc="Shorts" fmv="1.04" itemNum="249" name="Shorts" quality="Average Wear" /> </Category> </Category> <Category name="Boy's"> <Category name="Accessories"> <Item desc="Backpack/Book Bag" fmv="7.34" itemNum="533 +" name="Backpack/Book Bag" quality="Like New" /> <Item desc="Backpack/Book Bag" fmv="6.52" itemNum="533 +" name="Backpack/Book Bag" quality="Minor Wear" /> <Item desc="Backpack/Book Bag" fmv="5.41" itemNum="533 +" name="Backpack/Book Bag" quality="Average Wear" /> </Category> </Category> </Category> </NonCashDetails>


In reply to Re^2: Reformat DeductionPro 2008 Data File by bobf
in thread Reformat DeductionPro 2008 Data File by bobf

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.