I have a requirement whereby we need to validate an incoming XML against different schemas in MarkLogic. So, the steps required are :
- Validate the outer structure of xml for possible elements/structure against schema A.
- Validate each section against dedicated section schemas for them.[section1-schema,section2-schema etc]
- Report back the errors received to the front-end.
From what I have read/done till now for a single document that needs validation against single schema inMarkLogic is : Ingest the schema in Schemas DB and the incoming document can be validated against that using validate{} if they both are in same namespace. I haven't encountered such requirement before so need some pointers.