單項(xiàng)選擇題

你正在創(chuàng)建一個(gè)生成 XML 文檔的 ASP.NET Web 應(yīng)用。你需要為文檔增加一個(gè) XML 聲明。下面那個(gè)代碼能夠生成如下的 XML 聲明?()

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");


題目列表

你可能感興趣的試題

微信掃碼免費(fèi)搜題