本文介绍了用Xml进行C#编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好.
我可以使用带有xml的c#编码作为带有html的java脚本".
实际上,我想生成应基于Form Lavels和TextBoxes值动态更改的报表(.rdlc).
表格lavel和文本框是标签和文本框的数组,每次生成报告时,标签和文本框都可以不同.
Hi every one.
Can i use c# coding with xml as "java script with html".
Actually, I want to generate report (.rdlc) that should be changed dyanamically on the basis of Form Lavels and TextBoxes values.
The form lavels and textboxes are array of labels and textboxes that can be different each time when report is generated.
推荐答案
XmlDocument xd = new XmlDocument();
xd.LoadXml(xmltoread);//loading XML
var node = xd.GetElementsByTagName(nodename)[0];//reading node name [0],if node no is > 0
var outcome = node.Attributes["outcome"].Value;//End//printing in a variable or any control
这篇关于用Xml进行C#编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!