locked
Convert XML to Readable Text Format

    Question

  • Does anyone have code that convert the XML element name, attributes, and values to a text format like reports...such that if I had a tag like:

    <EligibilityBenefit BenefitCode="C" ServiceTypeCodes="96" InsuranceType="MB" TimePeriodQual="29" Amount="98.06" />
    <DateTimePeriod DTPQual="292" StartDate="2009-01-01" EndDate="2009-12-31" />  

    It would export something like:

    Eligibility Benefit
    BenefitCode: C
    ServiceTypeCodes: 96
    InsuranceType: MB
    TimePeriodQual: 29
    Amount: 98.06

    DateTimePeriod
    DTPQual: 292
    StartDate: 2009-01-01
    EndDate: 2009-12-31

    Thanks!
    Wednesday, February 25, 2009 3:14 PM