Extract child documents with identified names from Parent Documnet.

Hi Experts,

I want to extract childdocuments from parent document if childdoucment is with name i specified. sample of ParentDoc as follows…

Parent Doc:

ParentDoc(string1,String2,ChildDoc1,ChildDoc3 under ParentDoc)
String1
String2
ChildDoc1------------------(String3, ChildDoc2 under ChildDoc1)
String3
ChildDoc2--------------------(String4,string5 under ChildDoc2)
String4
String5
ChildDoc3-----------------------------(String6,String7,ChildDoc4 under ChildDoc3)
String6
String7
ChildDoc4--------------------(String8 under ChildDoc5)
String8

I have list of ChildDoc(ChildDoc1,ChildDoc2,ChildDoc3) names. If Parent Doc has these names then i need to extract from it and form as separate Document.

My desired output:

ParentDoc
String1
String2
ChildDoc1
String3
ChildDoc2
String4
String5
ChildDoc3
String6
String7
ChildDoc4
String8

any help will be appreciated. :smiley:

Thanks.

Hi Praveen,

your requirement is not very clear.

Can you give a more precise description please?
Eventually some screen shots mght help.

Regards,
Holger

Hi Holger ,

Pls find attachments for Input & Output.

I have names of Documents(FLOW,SEQUENCE,BRANCH) which will present under document(‘InputDocumentStructure’ image).

If Child document name is matching with any one of my names(FLOW,SEQUENCE,BRANCH) , then i need extract it and form as separate document(refer attached Output image)

Thanks,

Output.PNG
InputDocumentStructure.PNG

Hi Praveen,

I still have no clue what exactly you are tring to achieve.

Did you check for Xquery service in the Built-In Services Guide if this might be helpful for your use case.

Regards,
Holger