Advertisement
Guest User

Untitled

a guest
May 24th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. [XmlRoot(ElementName = "property")]
  2. public class Property
  3. {
  4. [XmlAttribute(AttributeName = "name")]
  5. public string Name { get; set; }
  6. [XmlAttribute(AttributeName = "value")]
  7. public string Value { get; set; }
  8. [XmlElement(ElementName = "property")]
  9. public List<Property> InnerProperty { get; set; }
  10. [XmlAttribute(AttributeName = "class")]
  11. public string Class { get; set; }
  12. [XmlAttribute(AttributeName = "param1")]
  13. public string Param1 { get; set; }
  14. }
  15.  
  16. [XmlRoot(ElementName = "item")]
  17. public class Item
  18. {
  19. [XmlElement(ElementName = "property")]
  20. public List<Property> Property { get; set; }
  21. [XmlAttribute(AttributeName = "id")]
  22. public string Id { get; set; }
  23. [XmlAttribute(AttributeName = "name")]
  24. public string Name { get; set; }
  25. }
  26.  
  27. [XmlRoot(ElementName = "items")]
  28. public class Items
  29. {
  30. [XmlElement(ElementName = "item")]
  31. public List<Item> Item { get; set; }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement