惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 叶小钗
O
OpenAI News
V
V2EX
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
S
Schneier on Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
小众软件
小众软件
L
LINUX DO - 热门话题
C
Cybersecurity and Infrastructure Security Agency CISA
博客园 - Franky
Security Latest
Security Latest
S
SegmentFault 最新的问题
Project Zero
Project Zero
Spread Privacy
Spread Privacy
K
Kaspersky official blog
J
Java Code Geeks
V
Vulnerabilities – Threatpost
C
Cisco Blogs
C
CERT Recently Published Vulnerability Notes
月光博客
月光博客
T
The Exploit Database - CXSecurity.com
L
Lohrmann on Cybersecurity
人人都是产品经理
人人都是产品经理
博客园 - 三生石上(FineUI控件)
Scott Helme
Scott Helme
WordPress大学
WordPress大学
量子位
T
Threat Research - Cisco Blogs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
宝玉的分享
宝玉的分享
Hugging Face - Blog
Hugging Face - Blog
AWS News Blog
AWS News Blog
Help Net Security
Help Net Security
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Simon Willison's Weblog
Simon Willison's Weblog
S
Secure Thoughts
博客园 - 【当耐特】
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
V
Visual Studio Blog
Last Week in AI
Last Week in AI
T
Tailwind CSS Blog
腾讯CDC
Cyberwarzone
Cyberwarzone
IT之家
IT之家
GbyAI
GbyAI
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
云风的 BLOG
云风的 BLOG
T
Troy Hunt's Blog
D
Docker

博客园 - Arthur_wuancheng(大步牛)

练手之作:易元威客任务发布系统(2) 练手之作:易元威客任务发布系统(1) 人生一世 草木一秋 如何进行高效的项目管理?(转) 项目管理的一点总结 极限编程法一点思考 WEB Service 下实现大数据量的传输 (转) 项目经验(转) Atlas 学习笔记: ajax 改进 by Atlas ajax for .net in vs2003 like gmail ^_^ 存储过程分页,以及动态sql(Sql server) C# 2.0 New Feature(1) WebService Enhancements 2.0 Learning Note ref type & out type Duwamish架构分析篇 (转) 程序编码应保持良好的规范(C#)(转) 也谈代码规范 (转) 如何用正确的方法来写出质量好的软件的75条体会 [转] How to Write to Database by EnterPriseLibrary2005 Logging Application Block(项目心得)
自己正在做电信的互联星空项目,里面用到的xml
Arthur_wuancheng(大步牛) · 2005-06-30 · via 博客园 - Arthur_wuancheng(大步牛)

自己正在做电信的互联星空项目,里面用到xml,封装一个xml节点读取器(我没有找到类似的,如果有我只好抱歉了)

//----------------------------------------------------------------
// Copyright (C) 2003-2005 ZTE Corporation
// 版权所有
//
// 系统名称:互联星空
// 子系统名称:***********
// 模块名称:XmlReader
// 描述:读取,按条件查询xml文件   
// 
// 作者:大步牛^_^
// 创建日期:[05/24/2005]
// 版本:0.5
//----------------------------------------------------------------
using System;
using System.Xml;

namespace Arthur.XmlReader
{
 
/// <summary>
 
/// XmlReadHeleper 的摘要说明。
 
/// </summary>

 public class XmlReadHeleper
 
{
  
public static XmlDocument doc;
  
public XmlReadHeleper()
  
{
   
//
   
// TODO: 在此处添加构造函数逻辑
   
//
   if ( doc == null )
   
{
    doc 
= new XmlDocument();
    doc.Load( 
@"C:\Documents and Settings\Administrator\My Documents\Visual Studio Projects\VNETResAdminProjGroup\VNETResAdminInterfaceRemotingImplClass\WebServiceInfoConfig.xml");
    
//    doc.Load( System.Web.HttpContext.Current.Server.MapPath("WebServiceInfoConfig.xml"));
   }

  }

  
/// <summary>
  
/// 查询所有的XML节点
  
/// </summary>
  
/// <returns></returns>

  public XmlNodeList ReadAllXml( )
  
{
   XmlNodeList xmlNodeList 
= doc.SelectNodes("/WebService/Node");
   
return xmlNodeList;
  }

  
/// <summary>
  
/// 根据所有属性查询单个的XML节点
  
/// </summary>
  
/// <param name="findParameter"></param>
  
/// <returns></returns>

  public XmlNode FindSingleXml( object[] findParameter )
  
{
   XmlNode xmlNode 
= doc.SelectSingleNode("/WebService/Node[@FullName='" + findParameter[0].ToString() + 
    
"' and @Url='" + findParameter[1].ToString() + 
    
"' and @MethodName='" + findParameter[2].ToString() + "']");
   
return xmlNode;
  }

  
/// <summary>
  
/// 根据id属性查询单个的XML节点
  
/// </summary>
  
/// <param name="id"></param>
  
/// <returns></returns>

  public XmlNode FindSingleXml( string id )
  
{
   XmlNode xmlNode 
= doc.SelectSingleNode("/WebService/Node[@id='" + id +"']");
   
return xmlNode;
  }

 
 }