Code: Select all
XElement BasicDataRules = new XElement("BasicDataRules", new XElement("Network",
new XElement("MalusByNetworkClass", new XAttribute("malus", malus[0])),
new XElement("MalusByNetworkClass", new XAttribute("malus", malus[1])),
new XElement("MalusByNetworkClass", new XAttribute("malus", malus[2])),
new XElement("MalusByNetworkClass", new XAttribute("malus", malus[3])),
new XElement("MalusByNetworkClass", new XAttribute("malus", malus[4])),
new XElement("MalusByNetworkClass", new XAttribute("malus", malus[5])),
new XElement("MalusByNetworkClass", new XAttribute("malus", malus[6])),
new XElement("MalusByNetworkClass", new XAttribute("malus", malus[7]))
));