質問編集履歴

1

追記依頼があったため、追記しました。

2017/02/24 07:30

投稿

poemt
poemt

スコア48

test CHANGED
File without changes
test CHANGED
@@ -53,3 +53,103 @@
53
53
  IDEとしてVisualStudio C#を使用しています。
54
54
 
55
55
  C#、XMLについては浅学のため、不足している情報がありましたらすみません。
56
+
57
+
58
+
59
+ 追記:
60
+
61
+ xsdから自動生成したType.csになります。
62
+
63
+ namespace TEST {
64
+
65
+ using System.Xml.Serialization;
66
+
67
+
68
+
69
+ /// <remarks/>
70
+
71
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727")]
72
+
73
+ [System.SerializableAttribute()]
74
+
75
+ [System.Diagnostics.DebuggerStepThroughAttribute()]
76
+
77
+ [System.ComponentModel.DesignerCategoryAttribute("code")]
78
+
79
+ [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="test.jp")]
80
+
81
+ [System.Xml.Serialization.XmlRootAttribute(Namespace="test.jp", IsNullable=false)]
82
+
83
+ public partial class Type {
84
+
85
+
86
+
87
+ private Parent parentField;
88
+
89
+
90
+
91
+ /// <remarks/>
92
+
93
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
94
+
95
+ public Parent1 parent1 {
96
+
97
+ get {
98
+
99
+ return this.parent1Field;
100
+
101
+ }
102
+
103
+ set {
104
+
105
+ this.parent1Field = value;
106
+
107
+ }
108
+
109
+ }
110
+
111
+ }
112
+
113
+
114
+
115
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727")]
116
+
117
+ [System.SerializableAttribute()]
118
+
119
+ [System.Diagnostics.DebuggerStepThroughAttribute()]
120
+
121
+ [System.ComponentModel.DesignerCategoryAttribute("code")]
122
+
123
+ [System.Xml.Serialization.XmlTypeAttribute(Namespace="test.jp")]
124
+
125
+ public partial class Parent {
126
+
127
+
128
+
129
+ private string child1Field;
130
+
131
+
132
+
133
+ /// <remarks/>
134
+
135
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
136
+
137
+ public string child1 {
138
+
139
+ get {
140
+
141
+ return this.child1Field;
142
+
143
+ }
144
+
145
+ set {
146
+
147
+ this.child1Field = value;
148
+
149
+ }
150
+
151
+ }
152
+
153
+ }
154
+
155
+ }