本文介绍了DotNet中的XML解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

如何使用Web服务在ASP.Net中使用XML解析.任何人都可以告诉并提供示例吗?

Hi All,

How to use XML Parsing in ASP.Net using web service. Can anyone tell and give sample?

推荐答案

XDocument posLog = XDocument.Load(posLogPath);
XNamespace ns = "http://www.somenamespace.org/IXRetail/namespace/";

// Query the data and write out a subset of contacts
var transactions = from transaction in posLog.Descendants(ns + "Transaction")
where transaction.Descendants(ns + "SomeRequiredCriteria").Any()



尝试使用google,这两种技术都有很多示例



Try google, there are lots of examples of both techniques



这篇关于DotNet中的XML解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 05:01