client/src/Iri.Modernisation.Data/Ldt/IRIMeta.cs
changeset 35 43bb1b8ed555
parent 34 4d9ebc6fbbe8
--- a/client/src/Iri.Modernisation.Data/Ldt/IRIMeta.cs	Tue Jan 19 09:49:56 2010 +0100
+++ b/client/src/Iri.Modernisation.Data/Ldt/IRIMeta.cs	Mon Jan 25 09:30:22 2010 +0100
@@ -8,11 +8,33 @@
 using System.Windows.Media;
 using System.Windows.Media.Animation;
 using System.Windows.Shapes;
-
-namespace Iri.Modernisation.Data.Ldt
+using System.Xml.Linq;
+namespace Iri.Modernisation.Data.LDTClass
 {
     public class IRIMeta
     {
+        public String Name { get; set; }
+        public String Content { get; set; }
+        public IRIMeta()
+        {
+            Name = String.Empty;
+            Content = String.Empty;
+        }
+        public IRIMeta(XElement elem)
+        {
+            Name = elem.Attribute("name").Value;
+            Content = elem.Attribute("content").Value;
+        }
+
+        public XElement XML
+        {
+            get
+            {
+                return new XElement("meta", 
+                    new XAttribute("name", Name),
+                    new XAttribute("content",Content));
+            }
+        }
 
     }
 }