A. 通过使用带有XmlReaderSettings 参数的XmlReader 的Create方法创建一个XmlReader 实例。
B. 使用XmlTextReader 参数创建一个XmlReader 实例。
C. 创建一个XmlDocument 实例并且指定架构的位置。
D. 使用XmlNodeReader参数创建一个XmlReader 实例。
第1题:
A.
B.
C.
D.
第2题:
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
第3题:
A.使用XmlDocument对象读取XML数据,同时指定相应架构文件。
B.为XmlReader对象的XmlReaderSettings设置ValidationEventHandler;
C.使用DataSet对象读取XML文件,并且设置EnforceConstraints属性为True;
D.使用DataSet对象读取XML文件,并且在DataSet.MergeFailed事件中分析数据看是否符合XML架构。
第4题:
A.XpathNavigator
B.XmlReader
C.XpathDocument
D.XmlDocument
第5题:
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");