Mapping dei tipi di dati XML a tipi di dati CLR
Nella tabella seguente viene descritto il mapping predefinito tra i tipi di dati XML e i tipi CLR (Common Language Runtime).
Nella tabella seguente vengono descritti i mapping predefiniti di un tipo di dati XML a un tipo CLR.
Nota |
---|
I prefissi xs e xdt sono associati rispettivamente agli URI dello spazio dei nomi http://www.w3.org/2001/XMLSchema e http://www.w3.org/2003/05/xpath-datatypes. |
Tipo XML |
Tipo 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 |
|
Nodo documento |
|
Nodo elemento |
|
Nodo attributo |
|
Nodo spazio dei nomi |
|
Nodo testo |
|
Nodo commento |
|
Nodo istruzione di elaborazione |