下面的XML代码段中,语法正确的是( )。A.<!-xml示例-!><?xml

考试题库2022-08-02  64

问题 下面的XML代码段中,语法正确的是(  )。A.<!-xml示例-!><?xml version ="1.0" encoding="gb2312"><?xml stylessheet type="text/css" href="mycss.css"?> <mytag>hello world!</mytag>B.<?xml version ="1.0" encoding="gb2312"><?xml stylessheet type="text/css"href="mycss.css"?><!-xml示例-!><mytag>hello world!</mytag>C.<?xml version ="1.0" encoding="gb2312"><?xml stylessheet type="text/css" href="mycss.css"?<!-xml示例-!<xmltag>hello world!</xmltag>D.<!-xml示例-!><?xml version ="1.0" encoding="gb2312"><?xml stylessheet type="text/css" href="mycss.css"?>

选项 A.<!-xml示例-!><?xml version ="1.0" encoding="gb2312"><?xml stylessheet type="text/css" href="mycss.css"?> <mytag>hello world!</mytag>
B.<?xml version ="1.0" encoding="gb2312"><?xml stylessheet type="text/css"href="mycss.css"?><!-xml示例-!><mytag>hello world!</mytag>
C.<?xml version ="1.0" encoding="gb2312"><?xml stylessheet type="text/css" href="mycss.css"?<!-xml示例-!<xmltag>hello world!</xmltag>
D.<!-xml示例-!><?xml version ="1.0" encoding="gb2312"><?xml stylessheet type="text/css" href="mycss.css"?>

答案 B

解析 此题考查的XML代码的语法,需要有XML代码基础才能做出,从历年的考题分析,XML出题的几率非常小,这里不做重点解析。
转载请注明原文地址:https://tihaiku.com/congyezige/2431948.html

最新回复(0)