Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

serialize xml as array C#

<?xml version="1.0" encoding="utf-8"?>
<sheet>
  <rows>
    <row>1</row>
    <row>2</row>
  </rows>
</sheet>


[XmlRoot("sheet")]
public class Sheet
{
    [XmlArray("rows")]
    [XmlArrayItem("row")] 
    public Row[] Rows;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #serialize #xml #array
ADD COMMENT
Topic
Name
3+3 =