你正在创建一个装载大 XML 文档的 ASP.NET Web 应用并且使用 Xpath 去查询和过滤 XML 文档。由于文档比较大,所以性能是一个关键因素。已知,用户不需要修改文档内容。请问,你应该使用那个类?()
A、XpathNavigator
B、XmlReader
C、XpathDocument
D、XmlDocument
A、XpathNavigator
B、XmlReader
C、XpathDocument
D、XmlDocument
A、通过使用带有XmlReaderSettings 参数的XmlReader 的Create方法创建一个XmlReader 实例。 B、使用XmlTextReader 参数创建一个XmlReader 实例。 C、创建一个XmlDocument 实例并且指定架构的位置。 D、使用XmlNodeReader参数创建一个XmlReader 实例。
A、A.使用XmlDocument对象读取XML数据,同时指定相应架构文件。 B、B.为XmlReader对象的XmlReaderSettings设置ValidationEventHandler; C、C.使用DataSet对象读取XML文件,并且设置EnforceConstraints属性为True; D、D.使用DataSet对象读取XML文件,并且在DataSet.MergeFailed事件中分析数据看是否符合XML架构。
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
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");
A、使用SELECT语句包含FORXMLAUTO子句把数据从XML文档拷贝到适当的表中。 B、使用SELECT语句包含FORXMLEXPLICIT子句把数据从XML文档拷贝到适当的表中。 C、使用OPENXML功能来访问数据并把它插入适当表中。 D、在SalesXML表中创建一个视图来显示XML文档中的内容。使用SELECTINTO语句来把视图中的数据插入适当的表中。
A、将XML文档存于以nvarchar(max)为数据类型的一列中 B、分割此XML文档并将其存储于在一个关系结构中 C、将XML文档存于以XML为数据类型的一列中 D、将XML文档存于以varchar(8000)为数据类型的一列中
A、XmlElement root = doc.DocumentElement;XmlNodeList nodes = root.SelectNodes(“.”); B、XmlElement root = doc.DocumentElement;XmlNodeList nodes = root.SelectNodes(“book”); C、XmlElement root = doc.DocumentElement; XmlNodeList nodes =root.SelectNodes(“bookstore//book”); D、XmlElement root = doc.DocumentElement; XmlNodeList nodes =root.SelectNodes(“books/book”);