Я пытаюсь установить свойство viewfields = true в C #, чтобы получить некоторые значения, которые мне нужны в атрибуте «ows_MetaInfo», возвращаемом из вызова SOAP «Getlistitems».Как мне это сделать, если я создаю свой XML с кодом?
System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
System.Xml.XmlElement query = xmlDoc.CreateElement("Query");
System.Xml.XmlElement viewFields = xmlDoc.CreateElement("ViewFields");
System.Xml.XmlElement rowLimit = xmlDoc.CreateElement("RowLimit");
System.Xml.XmlElement queryOptions = xmlDoc.CreateElement("QueryOptions");
System.Xml.XmlElement webID = xmlDoc.CreateElement("WebID");
после первого просмотра http://msdn.microsoft.com/en-us/library/cc264031.aspx я попытался установить свойство viewFields безуспешно:
System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
System.Xml.XmlElement query = xmlDoc.CreateElement("Query");
System.Xml.XmlElement viewFields = xmlDoc.CreateElement("ViewFields");
viewFields.SetAttribute("Properties", "True");
System.Xml.XmlElement rowLimit = xmlDoc.CreateElement("RowLimit");
System.Xml.XmlElement queryOptions = xmlDoc.CreateElement("QueryOptions");
System.Xml.XmlElement webID = xmlDoc.CreateElement("WebID");