搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【单选题】

你正在创建一个生成 XML 文档的 ASP.NET Web 应用。你需要为文档增加一个 XML 声明。下面那个代码能够生成如下的 XML 声明?()<?xml version="1.0" encoding="Unicode" standalone="yes" ?>

A、XmlDocument doc = new XmlDocument();doc.Load("subscribers.xml");XmlDeclaration xmldecl = doc.CreateXmlDeclaration("encoding", "Unicode");

B、XmlDocument doc = new XmlDocument();doc.Load("subscribers.xml"); XmlDeclaration xmldecl = doc.CreateXmlDeclaration("1.0", null, "yes");

C、XmlDocument doc = new XmlDocument(); doc.Load("subscribers.xml"); XmlDeclaration xmldecl = doc.CreateXmlDeclaration("1.0", "Unicode", "yes");

D、XmlDocument doc = new XmlDocument(); doc.Load("subscribers.xml"); XmlDeclaration xmldecl = doc.CreateXmlDeclaration("1.0", "Unicode");

更多“你正在创建一个生成 XML 文档的 ASP.NET Web 应用。你需要为文档增加一个 XML 声明。下面那个代码能够生成如下的 XML 声明?()<?xml version="1.0" encoding="Unicode" standalone="yes" ?>”相关的问题
第1题

A、通过使用带有XmlReaderSettings 参数XmlReader Create方法创建一个XmlReader 实例。  B、使用XmlTextReader 参数创建一个XmlReader 实例。  C、创建一个XmlDocument 实例并且指定架构位置。  D、使用XmlNodeReader参数创建一个XmlReader 实例。  

点击查看答案
第3题

A、A.使用XmlDocument对象读取XML数据,同时指定相应架构文件。  B、B.为XmlReader对象XmlReaderSettings设置ValidationEventHandler;  C、C.使用DataSet对象读取XML文件,并且设置EnforceConstraints属性为True;  D、D.使用DataSet对象读取XML文件,并且在DataSet.MergeFailed事件中分析数据看是否符合XML架构。  

点击查看答案
第4题

A、subscriber.DocumentElement.Attributes("phone").Value  B、subscriber.DocumentElement.ChildNodes[2].Value  C、subscriber.FirstChild.Attributes("phone").Value  D、subscriber.GetElementById("phone").Value  E、subscriber.DocumentElement.GetAttributeNode("phone").Value  

点击查看答案
第7题

A、使用SELECT语句包含FORXMLAUTO子句把数据从XML文档拷贝到适当表中。  B、使用SELECT语句包含FORXMLEXPLICIT子句把数据从XML文档拷贝到适当表中。  C、使用OPENXML功能来访问数据并把它插入适当表中。  D、在SalesXML表中创建一个视图来显示XML文档内容。使用SELECTINTO语句来把视图中数据插入适当表中。  

点击查看答案
第8题

A、将XML文档存于以nvarchar(max)为数据类型一列中  B、分割此XML文档并将其存储于在一个关系结构中  C、将XML文档存于以XML为数据类型一列中  D、将XML文档存于以varchar(8000)为数据类型一列中  

点击查看答案
第9题

A、创建一个config.xml 文件,为Windows XP计算机配置一个登录脚本来运行 Loadstate.exe.  B、修改 migapp.xml文件,为Windows XP计算机配置一个登录脚本来运行 Scanstate.exe.   C、修改miguser.xml 文件,为Windows XP计算机配置一个登录脚本来运行Migwiz.exe.   D、修改migdocs.xml 文件,为Windows XP计算机配置一个登录脚本来运行Scanstate.exe.  

点击查看答案
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服