13.07.2015 Views

Applied XML Programming for Microsoft .NET.pdf - Csbdu.in

Applied XML Programming for Microsoft .NET.pdf - Csbdu.in

Applied XML Programming for Microsoft .NET.pdf - Csbdu.in

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The <strong>XML</strong> Schema <strong>for</strong> Configuration Sett<strong>in</strong>gsAs mentioned, configuration files are standard <strong>XML</strong> files that follow a particular schema.This schema def<strong>in</strong>es all possible configuration sett<strong>in</strong>gs <strong>for</strong> mach<strong>in</strong>e, security, andapplication configuration files. The .<strong>NET</strong> Framework provides you with ad hoc classesto read configuration sett<strong>in</strong>gs, but no writ<strong>in</strong>g can be per<strong>for</strong>med. You need to be familiarwith <strong>XML</strong> readers and writers if you want to directly edit the configuration files. (In lightof this, bear <strong>in</strong> m<strong>in</strong>d that <strong>XML</strong> elements and attribute names are case-sensitive.)All the configuration files are rooted <strong>in</strong> the element. Table 15-1 lists thefirst-level children of the element. Each node has a specified number ofchild elements that provide a full description of the sett<strong>in</strong>g. For example, the element optionally conta<strong>in</strong>s the tag, <strong>in</strong> which you canstore <strong>in</strong><strong>for</strong>mation about the users who can safely access the URL resources.Table 15-1: Children of the ElementElementDescriptionConta<strong>in</strong>s custom application sett<strong>in</strong>gs<strong>in</strong> the specified <strong>XML</strong> <strong>for</strong>mat.Describes the configuration sections<strong>for</strong> custom sett<strong>in</strong>gs. If this element is<strong>in</strong> a configuration file, it must be thefirst child of the root.\ Cryptography schema; describes theelements that map friendly algorithmnames to classes that implementcryptography algorithms.Run-time sett<strong>in</strong>gs schema; describesthe elements that configure assemblyb<strong>in</strong>d<strong>in</strong>g and run-time behavior.Startup sett<strong>in</strong>gs schema; conta<strong>in</strong>s theelements that specify which versionof the common language runtime(CLR) must be used.Describes the elements that specifytrace switches and listeners thatcollect, store, and route messages.Network schema; specifies elementsto <strong>in</strong>dicate how the .<strong>NET</strong> Frameworkconnects to the Internet, <strong>in</strong>clud<strong>in</strong>g thedefault proxy, authenticationmodules, and connection parameters. Sett<strong>in</strong>gs schema; configures theclient and server applications thatimplement remot<strong>in</strong>g. <strong>Microsoft</strong> ASP.<strong>NET</strong> configurationsection schema; conta<strong>in</strong>s theelements that control how ASP.<strong>NET</strong>Web applications behave.505

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!