EnvDTE.Solution solution = dte.Solution;
EnvDTE.Project xaeProject = null;
// Get xaeProject
…
ITcSysManager sysManager = (ITcSysManager)xaeProject.Object;
// Navigate to the Analytics DataLogger Node
ITcSmTreeItem stream = sysManager.LookupTreeItem("TIAN^MyDataLoggerName^PlcStream1");
string sXmlDoc = stream.ProduceXml();
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(sXmlDoc);
XmlElement elemSetSymbol = xmlDoc.CreateElement("SetSymbol");
XmlAttribute attrSymbolName = xmlDoc.CreateAttribute("name");
attrSymbolName.Value = "MAIN.stTestStructSimple.nMember1";
XmlAttribute attrEnable = xmlDoc.CreateAttribute("value");
attrEnable.Value = "true";
elemSetSymbol.Attributes.Append(attrSymbolName);
elemSetSymbol.Attributes.Append(attrEnable);
xmlDoc.DocumentElement.AppendChild(elemSetSymbol);
string sConsumeXml = xmlDoc.OuterXml;
stream.ConsumeXml(sConsumeXml);