Hello,
I've trawled through many of the postings on this site but am still unable to find the right solution to removing the XML tag that is created when Serializing using an ArrayList. The structure that I'm trying to create is as follows :
<RootNode>
<Detail_level1> some attributes go here</Detail_level1>
<Series>
<Programme>deta ils of the programme go here</Programme>
<Programme>deta ils of the programme go here</Programme>
</Series>
<Series>
<Programme>deta ils of the programme go here</Programme>
<Programme>deta ils of the programme go here</Programme>
</Series>
</RootNode>
I've created a class 'SeriesProg' to contain a Series and Multiple Programmes and thus contains a class Series and an ArrayList of type Programme.
I then have an ArrayList of type SeriesProg which I assign an attribute of [XmlElement("Ser iesProg",typeof (SeriesProg))] The arraylist is part of the RootNode class.
The resulting XML is all correct except for the 'SeriesProg' tag which I need to remove.
Many thanks for any advice that can be given.
I've trawled through many of the postings on this site but am still unable to find the right solution to removing the XML tag that is created when Serializing using an ArrayList. The structure that I'm trying to create is as follows :
<RootNode>
<Detail_level1> some attributes go here</Detail_level1>
<Series>
<Programme>deta ils of the programme go here</Programme>
<Programme>deta ils of the programme go here</Programme>
</Series>
<Series>
<Programme>deta ils of the programme go here</Programme>
<Programme>deta ils of the programme go here</Programme>
</Series>
</RootNode>
I've created a class 'SeriesProg' to contain a Series and Multiple Programmes and thus contains a class Series and an ArrayList of type Programme.
I then have an ArrayList of type SeriesProg which I assign an attribute of [XmlElement("Ser iesProg",typeof (SeriesProg))] The arraylist is part of the RootNode class.
The resulting XML is all correct except for the 'SeriesProg' tag which I need to remove.
Many thanks for any advice that can be given.
Comment