XmlSchemaAnnotation.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Author: Dwivedi, Ajay kumar
  2. // [email protected]
  3. using System;
  4. using System.Xml;
  5. using System.Xml.Serialization;
  6. namespace System.Xml.Schema
  7. {
  8. /// <summary>
  9. /// Summary description for XmlSchemaAnnotation.
  10. /// </summary>
  11. public class XmlSchemaAnnotation : XmlSchemaObject
  12. {
  13. private string id;
  14. private XmlSchemaObjectCollection items;
  15. private XmlAttribute[] unhandledAttributes;
  16. public XmlSchemaAnnotation()
  17. {
  18. items = new XmlSchemaObjectCollection();
  19. }
  20. [System.Xml.Serialization.XmlAttribute("id")]
  21. public string Id
  22. {
  23. get{ return id; }
  24. set{ id = value; }
  25. }
  26. [XmlElement("appinfo",typeof(XmlSchemaAppInfo),Namespace="http://www.w3.org/2001/XMLSchema")]
  27. [XmlElement("documentation",typeof(XmlSchemaDocumentation),Namespace="http://www.w3.org/2001/XMLSchema")]
  28. public XmlSchemaObjectCollection Items
  29. {
  30. get{ return items; }
  31. }
  32. [XmlAnyAttribute]
  33. public XmlAttribute[] UnhandledAttributes
  34. {
  35. get{ return unhandledAttributes; }
  36. set{ unhandledAttributes = value; }
  37. }
  38. }
  39. }