做简历用的网站,托者设计吧官网,中国空间站设计在轨飞行几年,专业数据分析网站文章目录 第二十五章 控制到 XML 模式的映射 - 将文字属性映射到 XML 模式将文字属性映射到 XML 模式IRIS 数据类型类的默认 XSD 类型 第二十五章 控制到 XML 模式的映射 - 将文字属性映射到 XML 模式
将文字属性映射到 XML 模式
本节讨论如何将文字#xff08;非集合#… 文章目录 第二十五章 控制到 XML 模式的映射 - 将文字属性映射到 XML 模式将文字属性映射到 XML 模式IRIS 数据类型类的默认 XSD 类型 第二十五章 控制到 XML 模式的映射 - 将文字属性映射到 XML 模式
将文字属性映射到 XML 模式
本节讨论如何将文字非集合属性投影到 XML 类型以及影响 XML 架构的选项。它讨论了以下内容
数据类型类的默认 XSD 类型影响架构的编译器关键字影响架构的参数
IRIS 数据类型类的默认 XSD 类型
如果类或类属性基于常见 IRIS 数据类型类之一则将根据下表自动设置 XML 类型。 %xsd 包中的类直接映射到 XML 类型如表中所示。
%Library 和 %xsd 包中 IRIS 数据类型的 XM 类型
IRIS Class in the %xsd PackageIRIS Class in the %Library PackageXSD Type Used in Projections to XML%xsd.anyURIanyURI%xsd.base64Binary%Binary%Statusbase64Binary%xsd.boolean%Booleanboolean%xsd.byte%TinyIntbyte%xsd.date%Datedate%xsd.dateTime%PosixTime%StringTimeStamp%TimeStampdateTime%xsd.decimal%Currency%Decimal%Numericdecimal%xsd.double%Doubledouble%xsd.floatfloat%xsd.hexBinaryhexBinary%xsd.intint%xsd.integerinteger%xsd.long%BigIn%Integerlong%xsd.negativeIntegernegativeInteger%xsd.nonNegativeIntegernonNegativeInteger%xsd.nonPositiveIntegernonPositiveInteger%xsd.positiveIntegerpositiveInteger%xsd.short%SmallIntshort%xsd.string%Name%String%Liststring%xsd.time%Timetime%xsd.unsignedByteunsignedByte%xsd.unsignedIntunsignedInt%xsd.unsignedLongunsignedLong%xsd.unsignedShortunsignedShort
有关 XML 数据类型的信息请参阅 https://www.w3.org/TR/xmlschema-2/。
例如考虑以下类
Class Schema.DataTypesDemo Extends (%RegisteredObject, %XML.Adaptor)
{Parameter XMLTYPENAMESPACEmytypes;Property binaryprop As %xsd.base64Binary;Property booleanprop As %Boolean;Property dateprop As %Date;Property datetimeprop As %TimeStamp;Property decimalprop As %Numeric;Property integerprop As %Integer;Property stringprop As %String;Property timeprop As %Time;}该类的架构如下
?xml version1.0 encodingUTF-8?
schema xmlnshttp://www.w3.org/2001/XMLSchema xmlns:shttp://www.w3.org/2001/XMLSchema
elementFormDefaultqualified targetNamespacemytypescomplexType nameDataTypesDemosequenceelement minOccurs0 namebinaryprop types:base64Binary/element minOccurs0 namebooleanprop types:boolean/element minOccurs0 namedateprop types:date/element minOccurs0 namedatetimeprop types:dateTime/element minOccurs0 namedecimalprop types:decimal/element minOccurs0 nameintegerprop types:long/element minOccurs0 namestringprop types:string/element minOccurs0 nametimeprop types:time//sequence/complexType
/schema