Hi Manoj, Below info can help you to nail down your use case.
mlcp import -host -port -username -password -input_file_path -input_file_type aggregates -aggregate_record_element employee -uri_id info -output_uri_prefix /employee/ -output_uri_suffix .xml -transform_namespace -transform_module you can write the transformation to delete the <data> node while ingesting using above command, the output will contain <employee><info></info><info></info></employee> again repeat mlcp import -host -port -username -password -input_file_path -input_file_type aggregates -aggregate_record_element employee -uri_id data -output_uri_prefix /employee/ -output_uri_suffix .xml -transform_namespace -transform_module again write the transformation to delete the <info> node while ingesting using above command, the output will contain <employee><data></data><data></data></employee> If you need the help in writing the transformation module, I can help you. Warm regards, Zishan Khan From: [email protected] [mailto:[email protected]] On Behalf Of manoj viswanadha Sent: Tuesday, May 30, 2017 11:49 AM To: MarkLogic Developer Discussion <[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
