Layer7 API Management

  • 1.  XML Schema Validation : Strict or Lax

    Posted Dec 19, 2016 11:52 PM

    Hi,

     

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

     

    Thanks,

    Siddharth



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

    Posted Dec 20, 2016 05:44 PM

    Hi SIDDHARTHJAISWAL,

     

    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.

     

    Sincerely,

     

    Dustin Dauncey

    Sr Support Engineer, Global Customer Success

    Email: Dustin.Dauncey@ca.com

    Phone: +1 800 225 5224 ,48385

    Phone if outside North America - https://tinyurl.com/CAContactSupport

    CA API Management Community: https://tinyurl.com/CAAPIMCommunity



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

    Posted Dec 21, 2016 11:53 PM

    Hi Dustin,

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

     

    Sincerely,

    Siddharth Jaiswal



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

    Broadcom Employee
    Posted Dec 22, 2016 05:39 PM

    Siddharth,

     

    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 

     

    Examples:

    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

    Sincerely,

     

    Stephen Hughes

    Director, CA Support