易截截图软件、单文件、免安装、纯绿色、仅160KB

求助xml的读取问题 - .NET技术 / C#

我想建一个数组strs保存来自XMLFile1.xml的相关数据。数组最后是用来给combobox选择用的
 这是我用来模糊查询用的: XmlDataDocument _xmlData = null;
  XmlNodeList _xmlNodeList = null;

  try
  {
  string xmlFile = Application.StartupPath + "\\XMLFile1.xml";
  _xmlData = new XmlDataDocument();
  _xmlData.Load(xmlFile);
  string xpath = "//lines";

  if (textBox1.Text != "")
  {
  xpath += "[contains(name,'{0}')]";
  xpath = String.Format(xpath, this.textBox1.Text);
  }
这是关联combobox的代码:
  if (this.comboBox1.Text == "aaa")
  {
  this.comboBox2.Items.Clear();
  comboBox2.Items.Add("选择");
  string[] temp =strs[0].Split(',');
  for (int i = 0; i < temp.Length; i++)
  comboBox2.Items.Add(temp[i]);
  }
XMLFile1.xml如下:
<?xml version="1.0" encoding="utf-8" ?> 
 <bus>
  
  <linestops>
  <!-- 站点路线 --&


相关问答:

C# DataSet导出xml 批处理(循环)得怎么处理

DataSet导出xml 批处理(循环)得怎么处理
XML文件
<A>
      <B>
        <C>
        </C>
  &nb ......

java xml文题 - Java / Java SE

<?xml version="1.0" encoding="utf-8" ?> 
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical&q ......

vb读取xml - VB / 基础类

现在有个xml文件是<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
 xm ......

Document解析xml遇到的问题~~ - 移动平台 / Android

XML文件内容:
- <ResList>
  <page>0</page> 
- <resItem>
  <resName>WWW</resName> 
  </resItem>
- <resItem>
&nb ......

c# Winform 触摸屏程序 - .NET技术 / C#

公司开发一个触摸屏程序,我负责的一块,实现这样一个功能,当鼠标点击窗口中图片(一张图分成几部分)的其中一部分时,将这部分图片截取出来,弹出新的窗口,将截取出的图片显示出来。我使用Rectange类控制了返回, ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号