Layer7 API Management

Expand all | Collapse all

XML Schema Validation : Strict or Lax

Jump to Best Answer
  • 1.  XML Schema Validation : Strict or Lax

    Posted 12-19-2016 11:52 PM



     Does Validate XML Schema Assertion does "strict" or "lax" validation? 




  • 2.  Re: XML Schema Validation : Strict or Lax

    Posted 12-20-2016 05:44 PM



    My understanding is that the XML Schema Validation assertion validates input based on the strict mode, which is the default for the specification.


    If there is anything else I can do for you on this matter, please do not hesitate to reply to this response. If you feel this matter has been resolved to your satisfaction, please be sure to mark this response as one that "resolved" this post.




    Dustin Dauncey

    Sr Support Engineer, Global Customer Success


    Phone: +1 800 225 5224 ,48385

    Phone if outside North America -

    CA API Management Community:

  • 3.  Re: XML Schema Validation : Strict or Lax

    Posted 12-21-2016 11:53 PM

    Hi Dustin,

     Thanks for the response. Is there any option to change this default mode to "Lax"?



    Siddharth Jaiswal

  • 4.  Re: XML Schema Validation : Strict or Lax
    Best Answer

    Posted 12-22-2016 05:39 PM



    The XML Schema specification has the ability to outline LAX or Strict within the schema which is support by the Gateway.

    XML Schema Patterns for Common Data Structures 



    XML Schema any Element 

    processContentsOptional. Specifies how the XML processor should handle validation against the elements specified by this any element. Can be set to one of the following:
    • strict - the XML processor must obtain the schema for the required namespaces and validate the elements (this is default)
    • lax - same as strict but; if the schema cannot be obtained, no errors will occur
    • skip - The XML processor does not attempt to validate any elements from the specified namespaces



    Stephen Hughes

    Director, CA Support