下面的文件正确吗?为什么?用IE和本章中的解析器验证你的结论。 mes.dtd <!ELEMENT message ANY> <!ELEMENT persion (name,age?,lxfs)> <!ELEMENT lxfs (#PCDATA,tel|email)*> <!ELEMENT name (first,last)> <!ATTLIST name sex (male|female) "male"> <!ELEMENT first %pc; > <!ELEMENT last %pc;> <!ELEMENT age %pc;> <!ELEMENT tel %pc;> <!ELEMENT email %pc;> <!ENTITY % pc “(#PCDATA)”> <!ELEMENT emergency EMPTY> <!ATTLIST emergency fire CDATA #FIXED "119" police CDATA #FIXED "110" hospital CDATA #FIXED "120" > mes.xml <?xml version="1.0" encoding="gb2312"?> <!DOCTYPE SYSTEM "mes.dtd"> <message> <persion> <name sex="男"> <first>li</first> <last>xiao</last> </name> <age>25</age> <lxfs> <tel>123456</tel> </lxfs> </persion> <persion> <name> <first>wang</first> <last>xiao</last> </name> <lxfs></lxfs> </persion> <emergency fire="120" police="110" /> </message>

下面的文件正确吗?为什么?用IE和本章中的解析器验证你的结论。 mes.dtd <!ELEMENT message ANY> <!ELEMENT persion (name,age?,lxfs)> <!ELEMENT lxfs (#PCDATA,tel|email)*> <!ELEMENT name (first,last)> <!ATTLIST name sex (male|female) "male"> <!ELEMENT first %pc; > <!ELEMENT last %pc;> <!ELEMENT age %pc;> <!ELEMENT tel %pc;> <!ELEMENT email %pc;> <!ENTITY % pc “(#PCDATA)”> <!ELEMENT emergency EMPTY> <!ATTLIST emergency fire CDATA #FIXED "119" police CDATA #FIXED "110" hospital CDATA #FIXED "120" > mes.xml <?xml version="1.0" encoding="gb2312"?> <!DOCTYPE SYSTEM "mes.dtd"> <message> <persion> <name sex="男"> <first>li</first> <last>xiao</last> </name> <age>25</age> <lxfs> <tel>123456</tel> </lxfs> </persion> <persion> <name> <first>wang</first> <last>xiao</last> </name> <lxfs></lxfs> </persion> <emergency fire="120" police="110" /> </message>


相关考题:

Which of the following networking methods allows us to show that the last % of one element cannot be completed until % of a previous element has been completed?A.PERTB.ADMC.PDMD.All of the above.E.A and C only.

Using the situation stated in the Special window, which WBS element has a favorable cost variance of $150?A . Element PB . Element QC . Element RD . Element SE . None of the above.

Using the situation stated in the Special window, which WBS element is behind schedule but under budget?A . Element PB . Element QC . Element RD . Element SE None of the above.

161 Which of the following networking methods allows us to show that the last 10% of one element cannot be completed until 62% of a previous element has been completed?A. PERTB. ADMC. PDMD. All of the above.E. A and C only

101 Using the situation stated in the Special window, which WBS element is behind schedule but under budget?A. Element PB. Element QC. Element RD. Element SE. None of the above

102 Using the situation stated in the Special window, which WBS element has a favorable cost variance of $150?A. Element PB. Element QC. Element RD. Element SE. None of the above

在J2EE中,假设sample.xml文档有一个元素是,它有个子元素是。我们已经获得了Document对象doc,取出第一个的第一个资源的值的代码是()。 A.((Element)doc.getElementsByTagName(“PERSON”).item(0)).getNodeValue()B.((Element)doc.getElementsByTagName(“PERSON”).item(0)).getElementsByTagName(“NAME”).item(0).getFirstChild().getNodeValue()C.((Element)doc.getElementsByTagName(“PERSON”).item(0)).getElementsByTagName(“NAME”).item(0).getNodeValue()D.((Element)doc.getElementsByTagName(“PERSON”).item(0)).item(0).getNodeValue()

函数Node *difference(A,B)用于求两个集合之差C=A-B,即当且仅当e是A中的一个元素,但不是B中的元素时,e是C中的元素。集合用有序链表实现,用一个空链表表示一个空集合,表示非空集合的链表根据元素之间按递增排列。执行C=A-B之后,表示集合A和B的链表不变,若结果集合C非空,则表示其链表根据元素之值按递增排列。函数append()用于在链表中添加节点。[C函数]typedef struct node{int element;struct node *link;}Node;Node *A,*B,*C;Node *append(last,e)Node *last;int e;{last->link=(Node *)malloc(sizeof(Node));last->link->element=e;return(last->link);}Node *difference(A,B)Node *A,*B;{ Node *c,*last;C=last=(Node *)malloc(sizeof(Node));while( (1) )if(A->element<B->element){last=append(last,A->element);A=A->link:}else if( (2) ){A:A->link;B:B->link;}elSe(3) ;while( (4) ){last=append(last,A->element);A=A->link:}(5) ;last=c;c=c->link;free(last);return(c);}

In C launguage, when an array name is passed to a function, what is passed is the ______ of the beginning of the array.A.dataB.valueC.locationD.element

The way in which people address each other depends on their age, sex, social group and personal relationship. The English system of address forms frequently used includes first name, last name, title+last name, (), and kin term.Atitle+first nameBtitle+titleCtitle aloneDfirst name+last name+title

在J2EE中,使用()选项中的代码,可以生成如下XML文档:      Tony Blair      A、Element people = doc.createElement("PEOPLE");  Element person = doc.createElement("PERSON"); Element name = doc.createElement("NAME"); name.appendChild(doc.createTextNode("Tony Blair")); people.appendChild(person); person.appendChild(name); doc.appendChild(people);B、Element people = doc.createElement("PEOPLE");  Element person = doc.createElement("PERSON"); people.appendChild(person); Element name = doc.createElement("NAME"); name.appendChild(doc.createTextNode("Tony Blair")); person.appendChild(name); doc.appendChild(people);C、Element people = doc.createElement("PEOPLE");  Element person = doc.createElement("PERSON"); people.appendChild(person); Element name = doc.createElement("NAME"); name.appendText(doc.createTextNode("Tony Blair")); person.appendChild(name); doc.appendChild(people);D、Element people = doc.createElement("PEOPLE");  Element person = doc.createElement("PERSON");Element name = doc.createElement("NAME"); name.createTextNode("Tony Blair"); people.appendChild(person); person.appendChild(name); doc.appendChild(people);

The way in which people address each other depends on their age, sex, social group and personal relationship. The English system of address forms frequently used includes first name, last name, title+last name, (), and kin term.A、title+first nameB、title+titleC、title aloneD、first name+last name+title

分析以下DTD文档: <!--ELEMENT doc(title?,chap*)--> <!-- ELEMENT title(#PCDATA)--> <!-- ELEMENT chap(sect+)--> <!-- ELEMENT sect(para+)--> <!-- ELEMENT para(#PCDATA)--> 下面的XML实例能够通过DTD的校验。() A、<doc><chap><para>Text</para></chap></doc>B、<doc><chap><sect><para>Text</para></chap></doc>C、<doc><title>Text</title></doc>(*红色)D、<doc><title>Text</title><sect><para>Text</para></sect></doc>

有如下XML代码段: <element>text</element> 可以通过哪些方法获得标记<element>中的数据“text”?

Which element of a web application deployment descriptor  element is required()?A、 realm-name B、 auth-method C、 security-role D、 transport-guarantee E、 web-resource-collection

2015版《企业会计准则通用分类标准》中,元素名称(element name)以元素的中文标准标签为基础确定。

考虑如下的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>

一个元素内容中既含有文本也含有子元素,应当怎样定义()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">

在jQuery的层次选择器中,要选取紧接在element1元素后的一个element2元素,正确的是()。A、$(element1空格element2)B、$(element1element2)C、$(element1+element2)D、$(element1~element2)

在J2EE中,假设sample.xml文档有一个元素是,它有个子元素是。我们已经获得了Document对象doc,取出第一个的第一个资源的值的代码是()。 A、((Element)doc.getElementsByTagName(“PERSON”).item(0)).getNodeValue()B、((Element)doc.getElementsByTagName(“PERSON”).item(0)).getElementsByTagName(“NAME”).item(0).getFirstChild().getNodeValue()C、((Element)doc.getElementsByTagName(“PERSON”).item(0)).getElementsByTagName(“NAME”).item(0).getNodeValue()D、((Element)doc.getElementsByTagName(“PERSON”).item(0)). item(0).getNodeValue()

When adding a  element to a web application deployment descriptor, the inclusion of which sub-element requires the definition of an error page()?A、 realm-name B、 auth-metod C、 auth-constraint D、 form-login-config E、 user-data-constaint

单选题The way in which people address each other depends on their age, sex, social group and personal relationship. The English system of address forms frequently used includes first name, last name, title+last name, (), and kin term.Atitle+first nameBtitle+titleCtitle aloneDfirst name+last name+title

多选题在J2EE中,使用()选项中的代码,可以生成如下XML文档:      Tony BlairAElement people = doc.createElement(PEOPLE);  Element person = doc.createElement(PERSON); Element name = doc.createElement(NAME); name.appendChild(doc.createTextNode(Tony Blair)); people.appendChild(person); person.appendChild(name); doc.appendChild(people);BElement people = doc.createElement(PEOPLE);  Element person = doc.createElement(PERSON); people.appendChild(person); Element name = doc.createElement(NAME); name.appendChild(doc.createTextNode(Tony Blair)); person.appendChild(name); doc.appendChild(people);CElement people = doc.createElement(PEOPLE);  Element person = doc.createElement(PERSON); people.appendChild(person); Element name = doc.createElement(NAME); name.appendText(doc.createTextNode(Tony Blair)); person.appendChild(name); doc.appendChild(people);DElement people = doc.createElement(PEOPLE);  Element person = doc.createElement(PERSON);Element name = doc.createElement(NAME); name.createTextNode(Tony Blair); people.appendChild(person); person.appendChild(name); doc.appendChild(people);

问答题What is the first element for a child in his learning by imitation?

单选题Which element of a web application deployment descriptor  element is required()?A realm-name B auth-method C security-role D transport-guarantee E web-resource-collection

单选题在jQuery的层次选择器中,要选取紧接在element1元素后的一个element2元素,正确的是()。A$(element1空格element2)B$(element1element2)C$(element1+element2)D$(element1~element2)

单选题When adding a  element to a web application deployment descriptor, the inclusion of which sub-element requires the definition of an error page()?A realm-name B auth-metod C auth-constraint D form-login-config E user-data-constaint