XML データ型から CLR 型へのマッピング
更新 : November 2007
XML データ型と共通言語ランタイム (CLR) 型の既定のマッピングを次の表に示します。
次の表は、XML データ型から CLR 型への既定のマッピングを示しています。
メモ : |
---|
xs および xdt のプレフィックスは、それぞれ http://www.w3.org/2001/XMLSchema および http://www.w3.org/2003/05/xpath-datatypes 名前空間 URI に対応します。 |
XML 型 |
CLR 型 |
---|---|
xs:anyURI |
|
xs:base64Binary |
Byte[] |
xs:boolean |
|
xs:byte |
|
xs:date |
|
xs:dateTime |
|
xs:decimal |
|
xs:double |
|
xs:duration |
|
xs:ENTITIES |
String[] |
xs:ENTITY |
|
xs:float |
|
xs:gDay |
|
xs:gMonthDay |
|
xs:gYear |
|
xs:gYearMonth |
|
xs:hexBinary |
Byte[] |
xs:ID |
|
xs:IDREF |
|
xs:IDREFS |
String[] |
xs:int |
|
xs:integer |
|
xs:language |
|
xs:long |
|
xs:gMmonth |
|
xs:Name |
|
xs:NCName |
|
xs:negativeInteger |
|
xs:NMTOKEN |
|
xs:NMTOKENS |
String[] |
xs:nonNegativeInteger |
|
xs:nonPositiveInteger |
|
xs:normalizedString |
|
xs:NOTATION |
|
xs:positiveInteger |
|
xs:QName |
|
xs:short |
|
xs:string |
|
xs:time |
|
xs:token |
|
xs:unsignedByte |
|
xs:unsignedInt |
|
xs:unsignedLong |
|
xs:unsignedShort |
|
xdt:dayTimeDuration |
|
xdt:yearMonthDuration |
|
xdt:untypedAtomic |
|
xdt:anyAtomicType |
|
xs:anySimpleType |
|
ドキュメント ノード |
|
要素ノード |
|
属性ノード |
|
名前空間ノード |
|
テキスト ノード |
|
コメント ノード |
|
処理命令ノード |