可扩展标记语言(xml)

下面的文件正确吗?为什么?用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;> <!EL

题目

下面的文件正确吗?为什么?用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>

如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Using the situation stated in the Special window, which WBS element is behind schedule but under budget?

A . Element P

B . Element Q

C . Element R

D . Element S

E None of the above.


正确答案:D

第2题:

101 Using the situation stated in the Special window, which WBS element is behind schedule but under budget?

A. Element P

B. Element Q

C. Element R

D. Element S

E. None of the above


正确答案:D

第3题:

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.PERT

B.ADM

C.PDM

D.All of the above.

E.A and C only.


正确答案:C
C

第4题:

In C launguage, when an array name is passed to a function, what is passed is the ______ of the beginning of the array.

A.data

B.value

C.location

D.element


正确答案:C
解析:译文的含义是:在C语言中,当数组名传递给函数时,传递的是数组的起始()。选项A、B、C、D的含义分别是数据、数值、位置、元素,选项C为正确答案。

第5题:

在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()


参考答案:B

第6题:

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. PERT

B. ADM

C. PDM

D. All of the above.

E. A and C only


正确答案:C

第7题:

102 Using the situation stated in the Special window, which WBS element has a favorable cost variance of $150?

A. Element P

B. Element Q

C. Element R

D. Element S

E. None of the above


正确答案:C

第8题:

Using the situation stated in the Special window, which WBS element has a favorable cost variance of $150?

A . Element P

B . Element Q

C . Element R

D . Element S

E . None of the above.


正确答案:C

第9题:

函数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);

}


正确答案:(1) B->link (2) A->element==B->element (3) B=B->link (4) A>link!=NULL (5) last->link=NULL
(1) B->link (2) A->element==B->element (3) B=B->link (4) A>link!=NULL (5) last->link=NULL 解析:本题用链表表示集合,通过比较链表的元素值判断集合的元素之间的关系。第一个while循环的条件是链表B指针不指向空,即空(1)应填“B->link”。由于A,B两集合都是按递增排列的,则如果A中的元素小于B中的元素,A中元素直接放入集合C中,集合A指向其下一个元素;如果A中的元素等于B中的元素,集合A,B分别指向下一个元素,即空(21填“A->element==B->element”;如果A中的元素大于B中的元素,集合B指向其下一个元素,即空(3)填“B=B->link”。第二个循环的条件是链表A指针不指向空时,将A中元素直接加入到C中,即空(4)填“A->link!=NULL”。将链表C最后节点指针指向空,即空(51填“last->link=NULL”。

第10题:

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 name

Btitle+title

Ctitle alone

Dfirst name+last name+title


C

更多相关问题