Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ServerInformation>
- <Server Name ="NameServer" ServerPath="PathInServer" information="some values"/>
- <Server Name ="NameServer1" ServerPath="PathInServer1" information="some values1"/>
- </ServerInformation>
- /// <remarks/>
- [XmlTypeAttribute(AnonymousType = true)]
- [XmlRootAttribute(Namespace = "", IsNullable = false)]
- public class ServerInformation
- {
- private Server[] serverField;
- /// <remarks/>
- [XmlElementAttribute("Server")]
- public Server[] Server
- {
- get
- {
- return this.serverField;
- }
- set
- {
- this.serverField = value;
- }
- }
- }
- /// <remarks/>
- [XmlTypeAttribute(AnonymousType = true)]
- public class Server
- {
- private string nameField;
- private string serverPathField;
- private string informationField;
- /// <remarks/>
- [XmlAttributeAttribute()]
- public string Name
- {
- get
- {
- return this.nameField;
- }
- set
- {
- this.nameField = value;
- }
- }
- /// <remarks/>
- [XmlAttributeAttribute()]
- public string ServerPath
- {
- get
- {
- return this.serverPathField;
- }
- set
- {
- this.serverPathField = value;
- }
- }
- /// <remarks/>
- [XmlAttributeAttribute()]
- public string information
- {
- get
- {
- return this.informationField;
- }
- set
- {
- this.informationField = value;
- }
- }
- }
- XmlSerializer serializer = new XmlSerializer(typeof(ServerInformation));
Add Comment
Please, Sign In to add comment