LINQ in Action roller

Browse by Tags

All Tags » XSD » Schema Validation   (RSS)

  • XML Schema Facets

    I have received a number of requests over a period of time asking how to get all the facets defined on simple types or complex types with simple content in an XML Schema. I recently wrote a code sample for the same and I thought i will post it for wider consumption. The code sample will handle restrictions on lists, unions as well as facets defined on base types. public static void GetSchemaTypeFacets(XmlSchemaType schemaType) { if (schemaType == null || schemaType.Datatype == null) { //Complex type Read More...
  • To Trust, or Not to Trust?

    Validation of an XML document against an Xml Schema guarantees that the structure and content of the xml conforms to the types defined in the schema. Does this mean that we automatically elevate the trust level of a document that has passed schema validation? Can we use schema validation as a security layer to our application? The general recommendation is that validation of an xml document should not preclude the need for secure coding practices in the application that consumes the validated data. Read More...

Featured Item

This Blog

Sponsoring

Syndication