Hi Manoj, Keep in mind MLCP transforms receive one $content map:map, but are allowed to return multiple, each representing a file that needs to be persisted. Just return map:map’s each with a unique `uri` and `value` property.
I’d recommend combining that with the aggregate_element option on employee for best scalability.. Kind regards, Geert From: <[email protected]<mailto:[email protected]>> on behalf of manoj viswanadha <[email protected]<mailto:[email protected]>> Reply-To: MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Date: Tuesday, May 30, 2017 at 8:19 AM To: MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Subject: [MarkLogic Dev General] Mlcp transform to break big aggregate xml file to different invidual files Hi Team, I have a requirement to take aggregate xml as input and break that file into different individual xml files and commit into database. At a individual document level i have my content and single uri when I break into multiple documents i have more than one document to be created with multiple uris. Sample data: <root> <employee> <info></info> <info></info> <data></data> <data></data> </emploee> <employee> <info></info> <info></info> <data></data> <data></data> </emploee> </root> I want to create 4 different documents 2 from info and 2 from data and load 4 documents from mlcp transform at first employee level. Similarly for other employee levels. Is there any way to solve this using mlcp with transform? Thanks, Manoj Viswanadha
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
