Xml in vb

Discussion in 'Other Languages' started by tally.manish, Jan 13, 2015.

         
  1. tally.manish

    tally.manish Member


    Dear Admin

    I want to remove repeated node in xml through vb 6

    Example Input Xml

    <Fruit>
    <Name>Apple</Name>
    <Rate>35.00</Rate>
    <Qty>10</Qty>
    </Fruit>
    <Snacks>
    <Name>Puffs</Name>
    <Rate>15.00</Rate>
    <Qty>8</Qty>
    </Snacks>
    <Fruit>
    <Name>Banana</Name>
    <Rate>5.00</Rate>
    <Qty>10</Qty>
    </Fruit>
    <Snacks>
    <Name>Cake</Name>
    <Rate>100.00</Rate>
    <Qty>8</Qty>
    </Snacks>

    I want Output Xml
    <Snacks>
    <Name>Puffs</Name>
    <Rate>15.00</Rate>
    <Qty>8</Qty>
    <Snacks>
    <Name>Cake</Name>
    <Rate>100.00</Rate>
    <Qty>8</Qty>
    </Snacks>
    how to achieve it please help
     


  2. Maulik Patel

    Maulik Patel Active Member


    Dear tally.manish,

    U can use regular expressions in vb to get your output.
     
    khushbu likes this.


  3. tally.manish

    tally.manish Member


    D ear Sir,

    Please give any sample code
     


  4. tally.manish

    tally.manish Member


    Dear Mukesh Patel and Admin Sir

    Please give Sample code for this
     


Share This Page