(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / class / Microsoft.Web.Services / Microsoft.Web.Services.Xml / OpenAttributeElement.cs
blob1924924c6f64a5b4510f5c7049cf707da25ec7c8
1 //
2 // Microsoft.Web.Services.Xml.OpenAttributeElement.cs
3 //
4 // Author: Todd Berman <tberman@gentoo.org>
5 //
6 // (C) 2003 Todd Berman
8 using System;
9 using System.Xml;
10 using System.Collections;
12 namespace Microsoft.Web.Services.Xml
15 public abstract class OpenAttributeElement
18 private ArrayList _any;
20 public OpenAttributeElement ()
22 _any = new ArrayList ();
25 public void GetXmlAny (XmlDocument document, XmlElement element)
27 if(document == null) {
28 throw new ArgumentNullException ("document");
30 if(element == null) {
31 throw new ArgumentNullException ("element");
34 foreach(XmlAttribute attrib in AnyAttributes) {
35 element.Attributes.Append((XmlAttribute)document.ImportNode(attrib, true));
39 public void LoadXmlAny (XmlElement element)
41 if(element == null) {
42 throw new ArgumentNullException ("element");
44 foreach(XmlAttribute attrib in element.Attributes) {
45 AnyAttributes.Add(attrib);
49 public IList AnyAttributes {
50 get { return _any; }