So I was able to get your invoice demo up and working, as well as one of my own. There was one small hitch I had - how did you put the repeat content control on the table? I tried a couple of different ways, and couldnt get it with my own table - ended up copying yours and modifying it in my own document to get it working.
Did you draw the table first, put cursor in the row, select to the end of the row, then choose the content control? Then drag the other CC's into the interior of the Repeat CC?
I tried making a one row table and selecting it, and then putting the CC around it that way - never could get it working. When I ran my code, it would only put in the first entry from my custom XML, not any of the repeats.
Second question, and probably most important. If I am doing this for a resume, and I have a list of employers for an employee, I was able to to get it to loop over the previous Employers and insert them into my document (using a table, i just turned off borders, it turned out nicely!). Then I thought I would be able to embed another table in my Employers table, and pull the same trick, where in XML i have something like this
<employers>
<employer>
<employerName>Some place</employerName>
<projects>
<project>
<projectName>1st project</projectName>
</project>
<project>
<projectName>2nd Project</projectName>
</project>
</projects>
</employer>
</employers>
So in other words I want it to grab the first employer, then repeat over all those projects that the person had in there for that employer.
I tried to set my binding up on that embedded table like so:
bindingrole=repeat&w:xpath=/resume[1]/employers[1]/projects&w:storeItemID={72FAEA80-BBA1-4063-876F-B1CEAAF6FD6C}
But I get a NPE in the code when it gets to this line: customXmlDataStoragePart.preprocess(wordMLPackage);
Is my tag set up wrong, or is this just not a feature yet?