XmlSchemaAnnotated.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 XmlSchemaAnnotated.
  10. /// </summary>
  11. // Include all childrens of this class
  12. // [XmlInclude(typeof(XmlSchemaAnyAttribute)),
  13. // XmlInclude(typeof(XmlSchemaAttribute)),
  14. // XmlInclude(typeof(XmlSchemaAttributeGroup)),
  15. // XmlInclude(typeof(XmlSchemaAttributeGroupRef)),
  16. // XmlInclude(typeof(XmlSchemaContent)),
  17. // XmlInclude(typeof(XmlSchemaContentModel)),
  18. // XmlInclude(typeof(XmlSchemaFacet)),
  19. // XmlInclude(typeof(XmlSchemaGroup)),
  20. // XmlInclude(typeof(XmlSchemaIdentityConstraint)),
  21. // XmlInclude(typeof(XmlSchemaNotation)),
  22. // XmlInclude(typeof(XmlSchemaParticle)),
  23. // XmlInclude(typeof(XmlSchemaSimpleTypeContent)),
  24. // XmlInclude(typeof(XmlSchemaType)),
  25. // XmlInclude(typeof(XmlSchemaXPath))]
  26. public class XmlSchemaAnnotated : XmlSchemaObject
  27. {
  28. private XmlSchemaAnnotation annotation;
  29. private string id;
  30. private XmlAttribute[] unhandledAttributes;
  31. public XmlSchemaAnnotated()
  32. {}
  33. [XmlElement("annotation",Namespace="http://www.w3.org/2001/XMLSchema")]
  34. public XmlSchemaAnnotation Annotation
  35. {
  36. get{ return annotation; }
  37. set{ annotation = value; }
  38. }
  39. [System.Xml.Serialization.XmlAttribute("id")]
  40. public string Id
  41. {
  42. get{ return id; }
  43. set{ id = value; }
  44. }
  45. [XmlAnyAttribute]
  46. public XmlAttribute[] UnhandledAttributes
  47. {
  48. get{ return unhandledAttributes; }
  49. set{ unhandledAttributes = value; }
  50. }
  51. }
  52. }