Krystal_Amaia

Class 2

Oct 23rd, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.69 KB | None | 0 0
  1. using System;
  2. using System.Xml.Serialization;
  3. using System.Collections.Generic;
  4. namespace XmlResponses
  5. {
  6.     [XmlRoot(ElementName="EVENT")]
  7.     public class EVENT {
  8.         [XmlElement(ElementName="TIMESTAMP")]
  9.         public string TIMESTAMP { get; set; }
  10.         [XmlElement(ElementName="TEXT")]
  11.         public string TEXT { get; set; }
  12.         [XmlAttribute(AttributeName="id")]
  13.         public string Id { get; set; }
  14.     }
  15.  
  16.     [XmlRoot(ElementName="HAPPENINGS")]
  17.     public class HAPPENINGS {
  18.         [XmlElement(ElementName="EVENT")]
  19.         public List<EVENT> EVENT { get; set; }
  20.     }
  21.  
  22.     [XmlRoot(ElementName="WORLD")]
  23.     public partial class WORLD {
  24.         [XmlElement(ElementName="HAPPENINGS")]
  25.         public HAPPENINGS HAPPENINGS { get; set; }
  26.     }
  27.  
  28. }
Add Comment
Please, Sign In to add comment