blob: 6631dfed4808df5d7b6b3b42d7370ee245cbab4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
// Author: Dwivedi, Ajay kumar
// Adwiv@Yahoo.com
using System;
using System.Collections;
using System.Xml;
using System.Xml.Serialization;
namespace System.Xml.Schema
{
/// <summary>
/// Summary description for XmlSchemaAnnotated.
/// </summary>
public class XmlSchemaAnnotated : XmlSchemaObject
{
private XmlSchemaAnnotation annotation;
private string id;
private XmlAttribute[] unhandledAttributes;
public XmlSchemaAnnotated()
{}
[System.Xml.Serialization.XmlAttribute("id")]
public string Id
{
get{ return id; }
set{ id = value; }
}
[XmlElement("annotation",Namespace="http://www.w3.org/2001/XMLSchema")]
public XmlSchemaAnnotation Annotation
{
get{ return annotation; }
set{ annotation = value; }
}
[XmlAnyAttribute]
public XmlAttribute[] UnhandledAttributes
{
get
{
if(unhandledAttributeList != null)
{
unhandledAttributes = (XmlAttribute[]) unhandledAttributeList.ToArray(typeof(XmlAttribute));
unhandledAttributeList = null;
}
return unhandledAttributes;
}
set
{
unhandledAttributes = value;
unhandledAttributeList = null;
}
}
}
}
|