Пример #1
0
 public static void ReadUnhandledAttribute(XmlReader reader, XmlSchemaObject xso)
 {
     if (reader.Prefix == "xmlns")
     {
         xso.Namespaces.Add(reader.LocalName, reader.Value);
     }
     else if (reader.Name == "xmlns")
     {
         xso.Namespaces.Add(string.Empty, reader.Value);
     }
     else
     {
         if (xso.unhandledAttributeList == null)
         {
             xso.unhandledAttributeList = new ArrayList();
         }
         XmlAttribute xmlAttribute = new XmlDocument().CreateAttribute(reader.LocalName, reader.NamespaceURI);
         xmlAttribute.Value = reader.Value;
         XmlSchemaUtil.ParseWsdlArrayType(reader, xmlAttribute);
         xso.unhandledAttributeList.Add(xmlAttribute);
     }
 }