更多“XML Schema中()标签用于定义复合类型。A、<simpleType>B、<attribute>C、<element>D、<complexType>”相关问题
  • 第1题:

    XML Schema数据类型分为()和复杂类型两种。


    正确答案:简单类型

  • 第2题:

    如果一个XML文档存在以下()情况,我们称它为无效的xml文档。

    • A、  没有遵守 XML 规范定义的语法规则。
    • B、 遵守 XML语法,但没有 定义DTD 或Schema。
    • C、  定义了DTD 或Schema,但没有遵守DTD 或Schema中定义的规则。
    • D、  定义的DTD 或Schema不符合语法规范。

    正确答案:C,D

  • 第3题:

    XML Schema文档中元素element的()属性指定子元素可以出现的最多次数。

    • A、min
    • B、maxOccurs
    • C、minOccurs
    • D、max

    正确答案:B

  • 第4题:

    如果在W3C XML Schema文档中定义了目标名称空间,要在XML文档中使用()引用该Schema文档。

    • A、noNamespaceSchemaLocation
    • B、Location
    • C、schemaLocation
    • D、namespaceLocation

    正确答案:C

  • 第5题:

    XML Schema simpleType 元素用于定义XML文档中元素的子元素及其属性。


    正确答案:错误

  • 第6题:

    W3C XML Schema文档中,attribute元素的属性use值为()表示属性是可选的并且可以具有任何值。

    • A、optional
    • B、prohibited
    • C、required
    • D、fixed

    正确答案:A

  • 第7题:

    Schema类型定义中simpleType类型的元素中不能包含()或者()。


    正确答案:元素;属性

  • 第8题:

    Microsoft XML Schema和W3C XML Schema分别使用Attribute Type和()声明XML文档属性。


    正确答案:attribute

  • 第9题:

    考虑如下的XML.Schema示例 <xs:element name=”Price”><xs:complexType><xs:attribute name=”currency”type=”xs:string”/></xs:complexType></xs:element> 属性currency声明等同于下面选项()的DTD声明。

    • A、<!ATTLISTPricecurrencyCDATA#REQUIRED>
    • B、<!ATTLISTPricecurrencyCDATA#FIXED>
    • C、<!ATTLISTPricecurrencyCDATA#IMPLIED>
    • D、<!ATTLISTPricecurrencyPCDATA#IMPLIED>

    正确答案:C

  • 第10题:

    在XML中,在Schema中,声明一个元素的属性的attribute元素有一个常用的属性use,use的取值不包括下列哪一项()。

    • A、required
    • B、optional
    • C、fixed
    • D、prohibited

    正确答案:C

  • 第11题:

    一个元素内容中既含有文本也含有子元素,应当怎样定义()

    • A、<xs:element name="example" type=" xs:mixed ">
    • B、<xs:element name="example"> <xs:complexType>
    • C、<xs:element name="example"> <xs:complexType mixed="false">
    • D、<xs:element name="example"> <xs:complexType mixed="true">

    正确答案:D

  • 第12题:

    单选题
    How can a developer ensure that a fault will occur if the service does not recognize a SOAP header entry containing a transaction number?()
    A

     Set the faultCode value to soap:Transaction

    B

     Include a Fault element in the SOAP message

    C

     Include a mustUnderstand attribute in the header entry

    D

     Include a detail element containing application-specific elements according to the XML Schema


    正确答案: C
    解析: 暂无解析

  • 第13题:

    XML Schema规定XML文档实例的()和每个元素/属性的数据类型。


    正确答案:结构

  • 第14题:

    XML Schema定义了XML文档的结构。


    正确答案:错误

  • 第15题:

    下列哪个是schema中的simpleType与complexType的一个区别是()。

    • A、只有simpleType元素中可以使用restriction从其他类型继承。
    • B、只有complexType元素中可以使用restriction从其他类型继承。
    • C、只有simpleType的元素可以含有attribute。
    • D、只有complexType的元素可以含有attribute。

    正确答案:D

  • 第16题:

    XML Schema文档中语句 : <element type=”name” minOccurs=“1” maxOccurs=”*”/> 中属性type的作用是()

    • A、指定子元素的属性
    • B、指定子元素的数据类型
    • C、指定子元素是引用元素声明中name属性值为name的元素
    • D、指定子元素名称

    正确答案:D

  • 第17题:

    XML Schema中,声明用户自定义的简单数据类型使用关键字()。


    正确答案:simpleType

  • 第18题:

    以下()是针对XML文档的定义和规范。

    • A、DTD
    • B、SGML
    • C、Schema
    • D、complexType

    正确答案:A,C

  • 第19题:

    Schema类型定义中simpleType类型的元素中不能包含元素或者()。


    正确答案:属性

  • 第20题:

    一个XML文档如果符合它的XML Schema文档的定义,称它为()

    • A、结构良好的XML文档
    • B、有效的XML文档

    正确答案:A

  • 第21题:

    在XML中,在Schema中,声明一个元素的属性的attribute元素有一个常用的属性use,use的取值有()。

    • A、empty
    • B、required
    • C、optional
    • D、fixed
    • E、prohibited

    正确答案:B,C,E

  • 第22题:

    XML Schema是用一套预先规定的XML元素和属性创建的,这些元素和属性定义了XML文档的结构和()。


    正确答案:内容模式

  • 第23题:

    How can a developer ensure that a fault will occur if the service does not recognize a SOAP header entry containing a transaction number?()

    • A、 Set the faultCode value to soap:Transaction
    • B、 Include a Fault element in the SOAP message
    • C、 Include a mustUnderstand attribute in the header entry
    • D、 Include a detail element containing application-specific elements according to the XML Schema

    正确答案:C