Hi Dinesh, The usual approach for something like this is a transformation of the document via either a recursive typeswitch in xquery, or xslt:
https://docs.marklogic.com/guide/app-dev/typeswitch - Chris _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
