Extensible Markup Language XML, which is a platform-independent data representation format, has some advantages over the relational format for data representing the needs of specific data.
An XML document can be a physical file on a computer, a stream of data on a network, or just a string in memory. However, the XML document itself must be complete and well-formed. Even if there is no pattern, it must obey certain rules.
The Web. config file is an XML text file that is used to store configuration information for an ASP.
<?XML version= "1.0"?><Configuration> <system.web> <customErrorsdefaultredirect= "~/default.aspx"Mode= "Off"/> <HttpRuntimeRequestvalidationmode= "2.0"executiontimeout= "$"maxRequestLength= "52428800"useFullyQualifiedRedirectUrl= "false" /> <pagesvalidaterequest= "false"/> <compilationtargetframework= "4.0"Debug= "true"></compilation>
<httphandlers> <AddPath= "Action.ashx"verb="*"Validate= "false"type= "UI. Action.action "/> <AddPath= "Logout.ashx"verb="*"Validate= "false"type= "UI. Action.logout "/> <AddPath= "Verificationcode.ashx"verb="*"Validate= "false"type= "UI. Action.verificationcodeaction "/> </httphandlers>
</system.web> <connectionStrings> <Addname= "HYD." EMS "connectionString= "Data source=192.168.3.11\dev;timeout=210;initial catalog=appsale; User Id=sa; password=123456 "/> </connectionStrings> <appSettings> <AddKey= "Email"value= "[email protected]" /> <AddKey= "Emailpassword"value= "123456" /> <AddKey= "SMTP"value= "Smtp.qq.com" /> </appSettings> <system.webserver> <handlers> <AddPath= "Action.ashx"name= "Emsaction"verb="*"type= "UI. Action.action "/> <AddPath= "Logout.ashx"name= "Emslogout"verb="*"type= "UI. Action.logout "/> <AddPath= "Verificationcode.ashx"name= "Emsverificationcode"verb="*"type= "UI. Action.verificationcodeaction "/> <AddPath= "Params.ashx"name= "Emsparams"verb="*"type= "UI. Action.params "/> </handlers> <Validationvalidateintegratedmodeconfiguration= "false"/> </system.webserver> <System.ServiceModel> <Bindings/> <Client/> </System.ServiceModel></Configuration>
The fourth section uses XML