asp.net中XML的通用方法 [英] common approach on XML in asp.net

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

问题描述

在XML和asp.net上,哪一种是通用方法?

我看过基于流的方法
和非基于流的方法,例如XMLDocument,XPath,XDocument.

有关在何处/什么地方专注于XML教程的任何技巧.

Which is common method when it comes to XML and asp.net?

I have seen stream based approach
and non stream based approach like XMLDocument,XPath,XDocument.

Any tips on where/what to concentrate on XML tutorials.

推荐答案

坦白地说,要专注的重要部分与您如何阅读XML无关. -无论是来自文件还是流.获取数据是微不足道的-事后要做的就是这件事.如果您不想学习LINQ for XML,那么您应该学习如何使用XPath.如果您乐于学习LINQ for XML(我真的认为您应该对此进行研究),请看一下它能为您提供什么.
To be honest, the important parts to concentrate on have nothing to do with how you read the XML in - whether it''s from a file or stream. Getting the data in is trivial - it''s what you do with it afterwards that''s the important thing. If you don''t want to learn LINQ for XML, then you should learn how to work with XPath. If you''re happy learning LINQ for XML (and I really think you should look at this), take a look at what that has to offer for you.


这篇关于asp.net中XML的通用方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆