Esempio n. 1
0
		private void FillForeignAttribute (NvdlAttributable el)
		{
			if (!reader.MoveToFirstAttribute ())
				return;
			do {
				if (reader.NamespaceURI == "")
					continue;
				XmlAttribute a = doc.CreateAttribute (
						reader.Prefix,
						reader.LocalName,
						reader.NamespaceURI);
				a.Value = reader.Value;
				el.Foreign.Add (a);
			} while (reader.MoveToNextAttribute ());
			reader.MoveToElement ();
		}
Esempio n. 2
0
 private void FillForeignAttribute(NvdlAttributable el)
 {
     if (!reader.MoveToFirstAttribute())
     {
         return;
     }
     do
     {
         if (reader.NamespaceURI == "")
         {
             continue;
         }
         if (reader.NamespaceURI != "http://www.w3.org/2000/xmlns/")
         {
             var a = new XAttribute(XNamespace.Get(reader.NamespaceURI).GetName(reader.LocalName), reader.Value);
             el.Foreign.Add(a);
         }
     } while (reader.MoveToNextAttribute());
     reader.MoveToElement();
 }
Esempio n. 3
0
 private void FillForeignAttribute(NvdlAttributable el)
 {
     if (!reader.MoveToFirstAttribute())
     {
         return;
     }
     do
     {
         if (reader.NamespaceURI == "")
         {
             continue;
         }
         XmlAttribute a = doc.CreateAttribute(
             reader.Prefix,
             reader.LocalName,
             reader.NamespaceURI);
         a.Value = reader.Value;
         el.Foreign.Add(a);
     } while (reader.MoveToNextAttribute());
     reader.MoveToElement();
 }