asp.net - How web.config is validated -
all,this question may ignored everyday asp.net developer air. if think dumb, please don't laugh. thanks,
we knew web.config
hosted in every asp.net web application. , it's syntax restricted xml , dotnetconfig.xsd. schema describe can allowed in web.config
.
but when in specified web.config
.
<?xml version="1.0" encoding="utf-8"?> <configuration> .... </configuration>
we didn't see place show xml based on dotnetconfig.xsd
.i mean xml need validated should documented schema can validated in runtime. right ?
how validation works ? please tell me . thanks.
web.config
not strictly validated against xsd file @ runtime. xsd file used visual studio assistance developers avoid typos , other errors in known parts of configuration file, because .net configuration entirely extensible there little point in performing xsd-based validation @ runtime.
some validation performed system.configuration
classes in class library when load configuration data, per-element validation (in sense) responsibility of consuming configuration classes rather web.config loader/parser itself.
Comments
Post a Comment