Hi Alex,
this is my code so far:
namespace XmppWebService.Contracts.Elements
{
public class PersonenType : agsXMPP.Xml.Dom.Element
{
public PersonenType()
{
this.TagName = "Personen";
this.Namespace = "XmppWebService:Personen";
}
}
public class PersonType : agsXMPP.Xml.Dom.Element
{
string id;
string geschlecht;
string vorname;
string nachname;
int alter;
List <AdresseType> Adresse;
public PersonType()
{
this.TagName = "Person";
this.Namespace = "XmppWebService:Person";
}
public PersonType(string ID, string Geschlecht, string Vorname, string Nachname, int Alter, AdresseType Adresse)
{
this.id = ID;
this.geschlecht = Geschlecht;
this.vorname = Vorname;
this.nachname = Nachname;
this.alter = Alter;
}
public void AddAdresse(AdresseType Adresse)
{
this.Adresse.Add(Adresse);
}
public string ID
{
get { return this.GetAttribute("ID"); }
set { this.SetAttribute("ID", value); }
}
public string Geschlecht
{
get { return this.GetAttribute("Geschlecht"); }
set { this.SetAttribute("Geschlecht", value); }
}
public string Vorname
{
get { return this.GetAttribute("Vorname"); }
set { this.SetAttribute("Vorname", value); }
}
public string Nachname
{
get { return this.GetAttribute("Nachname"); }
set { this.SetAttribute("Nachname", value); }
}
public int Alter
{
get { return this.GetTagInt("Alter"); }
set { this.SetTag("Alter", value); }
}
public AdressType Adresse
{
get { ??? ("Adresse"); }
set { ??? ("Adresse", value); }
}
}
public class StrasseType : agsXMPP.Xml.Dom.Element
{
string StrasseTypenname;
string hausnummer;
public StrasseType()
{
this.TagName = "Strasse";
this.Namespace = "XmppWebService:Strasse";
}
public StrasseType(string Strassenname, string Hausnummer)
{
this.Strassenname = Strassenname;
this.hausnummer = Hausnummer;
}
public string Strassenname
{
get { return this.GetAttribute("Strassenname"); }
set { this.SetAttribute("Strassenname", value); }
}
public string Hausnummer
{
get { return this.GetAttribute("Hausnummer"); }
set { this.SetAttribute("Hausnummer", value); }
}
}
public class AdresseType : agsXMPP.Xml.Dom.Element
{
int plz;
string ort;
StrasseType StrasseType;
public AdresseType()
{
this.TagName = "Adresse";
this.Namespace = "XmppWebService:Adresse";
}
public AdresseType(int Plz, string Ort, StrasseType Strasse)
{
this.plz = Plz;
this.ort = Ort;
this.StrasseType = Strasse;
}
public int Plz
{
get { return this.GetAttributeInt("Plz"); }
set { this.SetAttribute("Plz", value); }
}
public string Ort
{
get { return this.GetAttribute("Ort"); }
set { this.SetAttribute("Ort", value); }
}
public StrasseType Strasse
{
get { return ??? ("Strasse"); }
set { ??? ("Strasse", value); }
}
}
}
Thank you for your help
Martin