Example #1
0
		private void FillNonXmlAttributes (NvdlMessage el)
		{
			if (!reader.MoveToFirstAttribute ())
				return;
			do {
				if (reader.NamespaceURI == Nvdl.XmlNamespaceUri)
					continue;
				XmlAttribute a = doc.CreateAttribute (
						reader.Prefix,
						reader.LocalName,
						reader.NamespaceURI);
				a.Value = reader.Value;
				el.ForeignAttributes.Add (a);
			} while (reader.MoveToNextAttribute ());
			reader.MoveToElement ();
		}
Example #2
0
 private void FillNonXmlAttributes(NvdlMessage el)
 {
     if (!reader.MoveToFirstAttribute())
     {
         return;
     }
     do
     {
         if (reader.NamespaceURI == Nvdl.XmlNamespaceUri)
         {
             continue;
         }
         var a = new XAttribute(XNamespace.Get(reader.NamespaceURI).GetName(reader.LocalName), reader.Value);
         el.ForeignAttributes.Add(a);
     } while (reader.MoveToNextAttribute());
     reader.MoveToElement();
 }
Example #3
0
        private NvdlMessage ReadMessage()
        {
            NvdlMessage el = new NvdlMessage();

            FillLocation(el);
            el.XmlLang = reader.GetAttribute("lang", Nvdl.XmlNamespaceUri);
            FillNonXmlAttributes(el);
            if (reader.IsEmptyElement)
            {
                reader.Skip();
                el.Text = "";
            }
            else
            {
                el.Text = reader.ReadElementContentAsString();
            }
            return(el);
        }
Example #4
0
 private void FillNonXmlAttributes(NvdlMessage el)
 {
     if (!reader.MoveToFirstAttribute())
     {
         return;
     }
     do
     {
         if (reader.NamespaceURI == Nvdl.XmlNamespaceUri)
         {
             continue;
         }
         XmlAttribute a = doc.CreateAttribute(
             reader.Prefix,
             reader.LocalName,
             reader.NamespaceURI);
         a.Value = reader.Value;
         el.ForeignAttributes.Add(a);
     } while (reader.MoveToNextAttribute());
     reader.MoveToElement();
 }
Example #5
0
 public void Remove(NvdlMessage item)
 {
     List.Add(item);
 }
Example #6
0
 public void Add(NvdlMessage item)
 {
     List.Add(item);
 }
Example #7
0
		public void Remove (NvdlMessage item)
		{
			List.Add (item);
		}
Example #8
0
		public void Add (NvdlMessage item)
		{
			List.Add (item);
		}
Example #9
0
		private NvdlMessage ReadMessage ()
		{
			NvdlMessage el = new NvdlMessage ();
			FillLocation (el);
			el.XmlLang = reader.GetAttribute ("lang", Nvdl.XmlNamespaceUri);
			FillNonXmlAttributes (el);
			if (reader.IsEmptyElement) {
				reader.Skip ();
				el.Text = "";
			}
			else
				el.Text = reader.ReadElementString ();
			return el;
		}