资源文件与常规Xml文件 [英] Resource file vs. regular Xml file

查看:82
本文介绍了资源文件与常规Xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要启用mutli语言支持。使用资源文件而不是自定义xml解决方案可以获得什么好处?


谢谢!

解决方案

TS写道:


i需要启用mutli语言支持。使用资源文件而不是自定义xml解决方案可以获得什么好处?


谢谢!



我不知道你的客户xml解决方案是什么是吗?您将所有

控件的信息存储在常规的

xml文件中,例如文本,颜色值(#aabbcc),不是吗?

据我所知,ASP.NET支持资源文件非常好。所以你需要多种语言才能使用多种语言,你应该在ASP.NET中使用资源功能。


< blockquote>是的。


你知道资源文件的实际好处而不是普通的xml

文件吗?


Duy Lam < du ********** @ gmail.comwrote in message

news:eA ************** @ TK2MSFTNGP05.phx.gbl ...


TS写道:


>我需要启用mutli语言支持。使用资源文件而不是自定义xml解决方案可以获得什么好处?

谢谢!



我不知道你的客户xml解决方案是什么是吗?您将所有

控件的信息存储在常规的

xml文件中,例如文本,颜色值(#aabbcc),不是吗?

据我所知,ASP.NET支持资源文件非常好。所以你要么不需要多种语言,你应该在你的

ASP.NET中使用资源功能。



你好TS,

我认为使用.NET资源文件的主要优点(你可以充分利用内置的API或编码语法支持。

例如,.NET提供ResourceManager Class或者resx文件。

。帮助您

以编程方式从资源文件或resx文件加载资源键。另外,

..net资源文件可以嵌入到程序集中。如果您使用自定义的

xml解决方案,则需要定义自己的xml文件格式并使用原始的

XML API来操作它们。您如何看待?


此致,

Steven Cheng


Microsoft MSDN在线支持主管

此帖子按原样提供。没有保证,也没有赋予任何权利。

--------------------


> From:" TS" < ma ********** @ nospam.nospam>
参考文献:< OL ************** @ TK2MSFTNGP03.phx.gbl>



< eA ************** @ TK2MSFTNGP05.phx.gbl>


>主题:Re:资源文件与常规Xml文件
日期:2007年11月14日星期三12:00:41 -0600
是的。

你知道资源文件的实际好处而不是常规的xml
文件吗?

Duy Lam < du ********** @ gmail.com写信息
新闻:eA ************** @ TK2MSFTNGP05.phx.gbl ...


> TS写道:


>>我需要启用mutli语言支持。什么好处



do


>>我使用资源文件而不是自定义xml解决方案?

谢谢!


我不知道你的客户xml解决方案是什么是吗?您将所有控件的信息(如文本,颜色值(#aabbcc))存储在常规的
xml文件中,不是吗?
据我所知,ASP.NET支持资源文件非常好。所以你





>需要是否使用多种语言,您应该在ASP.NET中使用资源功能。




i have a need to possibly enable mutli language support. What benefit do i
get by using a resource file instead of a custom xml solution?

thanks!

解决方案

TS wrote:

i have a need to possibly enable mutli language support. What benefit do i
get by using a resource file instead of a custom xml solution?

thanks!

I don''t know what your "customer xml solution" is ? You store all
information of controls such as text, color value (#aabbcc) in a regular
xml file, doesn''t you ?
As far as I know, ASP.NET support resource file very well. So you
either need a multi languages or not, you should use Resource Feature in
your ASP.NET.


yes.

do you know of the actual benefits of resource file instead of regular xml
file?

"Duy Lam" <du**********@gmail.comwrote in message
news:eA**************@TK2MSFTNGP05.phx.gbl...

TS wrote:

>i have a need to possibly enable mutli language support. What benefit do
i get by using a resource file instead of a custom xml solution?

thanks!


I don''t know what your "customer xml solution" is ? You store all
information of controls such as text, color value (#aabbcc) in a regular
xml file, doesn''t you ?
As far as I know, ASP.NET support resource file very well. So you either
need a multi languages or not, you should use Resource Feature in your
ASP.NET.



Hi TS,

I think the main advantage of using .NET resource file(or resx file) is
that you can make full use of the built-in API or coding syntax support.
For example, .NET provide "ResourceManager Class" to help you
programmatically load resource keys from resource file or resx file. Also,
..net resource file can be embeded into assembly. If you''re using custom
xml solution, you''ll need to define your own xml file format and use raw
XML API to manipulate them. How do you think?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

>From: "TS" <ma**********@nospam.nospam>
References: <OL**************@TK2MSFTNGP03.phx.gbl>

<eA**************@TK2MSFTNGP05.phx.gbl>

>Subject: Re: Resource file vs. regular Xml file
Date: Wed, 14 Nov 2007 12:00:41 -0600

yes.

do you know of the actual benefits of resource file instead of regular xml
file?

"Duy Lam" <du**********@gmail.comwrote in message
news:eA**************@TK2MSFTNGP05.phx.gbl...

>TS wrote:

>>i have a need to possibly enable mutli language support. What benefit

do

>>i get by using a resource file instead of a custom xml solution?

thanks!


I don''t know what your "customer xml solution" is ? You store all
information of controls such as text, color value (#aabbcc) in a regular
xml file, doesn''t you ?
As far as I know, ASP.NET support resource file very well. So you

either

>need a multi languages or not, you should use Resource Feature in your
ASP.NET.




这篇关于资源文件与常规Xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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