.net - How do I specify that a list property's contents are xml serialized, but the property itself should not be respresented in the markup? -
I've got a square like this:
[XmlRoot ("channel") ] Public category channels {[XmlElement ("title")] Public string title {get; Set; } [Watselsegseaire] [XMLArray ("item")] Public List & amp; Lt; Items & gt; Item {get; Set; }}
The output I want is:
& lt; Channel & gt; & Lt; Title & gt; Title & lt; / Title & gt; & Lt; Items & gt; {Item content} & lt; / Item & gt; & Lt; Items & gt; {Item content} & lt; / Item & gt; & Lt; / Channel & gt;
You can try to use instead:
Comments
Post a Comment