That is not what happens here. I am going back to you original post and you need to stop moving the goal post after the start of the game.
1. You want to find some text and put any found text into a CC mapped to an XML node. OK. In a new document type: test test test test test test
Run the code. You should get a prompt to enter the text to find (enter test) and a prompt to enter a titled. Do so. The result should be 6 CCs mapped to an XML Node.
2. With another new document. Create a CC name it "Test" and make its contents = test. Add another CC. Name it something other than "Test" and make its contents something else (e.g., some other text). Then type test test test test test.
Run the code. When prompted for search term enter "test" You won't get prompted for the title because a CC already exists that is titled "Test." The other CC named something else should not be affected and your should have six new CC titlted "Test" and mapped to the same node.
If you are wanting to have multiple groups of mapped CCs then you will have to have multiple nodes in your XML part. Right now there is only one node.
|