How to remove parent node using XmlDocument class

  • Thread starter Thread starter Sudip_inn
  • Start date Start date
S

Sudip_inn

Guest
see this is my xml structure

<ArrayOfTickerSectionLI xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">
<TickerSectionLI>
<Ticker>TER</Ticker>
<Section>Consensus Model</Section>
</TickerSectionLI>

<TickerSectionLI>
<Ticker>TER</Ticker>
<Section>Key Drugs</Section>
</TickerSectionLI>

</ArrayOfTickerSectionLI>
tell me how could i remove this node ArrayOfTickerSectionLI using XmlDocument class


after remove my new xml would be looking like

<TickerSectionLI>
<Ticker>TER</Ticker>
<Section>Consensus Model</Section>
</TickerSectionLI>

<TickerSectionLI>
<Ticker>TER</Ticker>
<Section>Key Drugs</Section>
</TickerSectionLI>


thanks

Continue reading...
 
Back
Top