了解Xml以及如何阅读. [英] Know about Xml and how to read it.

查看:79
本文介绍了了解Xml以及如何阅读.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我是新手,请帮帮我.我正在制作控制台应用程序.我在类中声明了函数.我想通过XML读取此数据.但是我无法使用Xmltextreader函数.我可以从xml读取数据吗?我没有使用数据库.如何填充xml文件.或者还有其他方法可以做到这一点.我没有任何想法.我在网上搜索了.但是无法掌握这个概念..我只知道什么是xml,什么时候使用..但是,当我只有一个类文件时,..请给我一些想法..
谢谢...

Hi everyone,
I am Newbie.please help me out.I am making Console application.i have class where i am declaring functions.I want to Read this data through XML.But i am unable to use Xmltextreader function..where to use..and how can i read data from xml..i am not using database.How to populate xml file..or Is there any other way to do this..i don''t have any idea..i searched on net..but unable to grasp this concept..i know only what is xml and when to use..but how when i have single class file..please give me some idea..
thanks...

推荐答案

您已标记问题ASP.NET,但随后声明您正在编写控制台应用程序,因此问题不是很清楚.但是,您应该花一些时间研究 XML命名空间 [ CodeProject文章 [
You have tagged your question ASP.NET but then state that you are writing a console application, so your problem is not very clear. However, you should spend some time studying the XML Namespaces[^] which contain the different classes that can read and write XML. You can also search via Google, or the CodeProject Articles[^], for ready made samples.


这篇关于了解Xml以及如何阅读.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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