为什么Web Config由XML组成 [英] Why Web Config made up of XML

查看:63
本文介绍了为什么Web Config由XML组成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生您好,

我想知道我们的web.config由xml组成的原因是什么,而不是由javascript或任何其他语言组成的.

预先感谢

Hello sir,

I would like to know what is the reason that our web.config made up of xml why not it is made up of javascript or any other language.

THanks in advance

推荐答案

您需要注意的第一件事是
XML是标记语言,而Javascript是脚本语言

标记语言是现代系统,用于以一种可从语法上区别于文本的方式来注释文本.它们比文字更具描述性.

Javascript,vbscripting是用于验证客户端输入和处理数据的脚本语言.
First thing you need to note is
XML is Markup language and Javascript is Scripting language

Markup languages are modern systems for annotating a text in a way that is syntactically distinguishable from that text. they are more descriptive than text.

Javascript, vbscripting are scripting languages used to validate client input and process data.


由于Xml非常易于使用,并且具有自我描述性,因此可以与其他语言进行比较.
Since Xml is very user friendly and self describing compare to other.


XML标签未预定义.您可以根据需要定义自己的标签.在配置文件中,所有标签都有特殊含义.这些标签用于配置ASP.Net设置.
Web.config文件修改 Machine.config中规定的默认设置.
看一下web.config
Web.config

希望对您有帮助....
XML tags are not predefined. You can define your own tags as you need.In config file, all tags have special meaning.These tags use to configure ASP.Net setting.
Web.config files modify the default settings stipulated in Machine.config.
take a look of web.config
Web.config

Hope it helps....


这篇关于为什么Web Config由XML组成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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