I have some data supplied (see below) that has data at the parent node CustomBook that I want to add to the child node CustomBooks
I'd like to add the BatchID data to each CustomBooks node before saving.
The reason I do this is that the XML is then split later in the process using Saxon and then processed with Smartstream and I'll need the BatchID in Indesign.
Whilst I can create and add at the root level I've never been able to add it successfully at the child level.
Here's my test data
<?xml version="1.0"?>
<CustomBookProject>
<BatchID>10</BatchID>
<SourceFileName>FileA.xlsx</SourceFileName>
<CreationDateTime>2016-12-13T08:15:53.2168189+00:00</CreationDateTime>
<ProjectID>TestJob</ProjectID>
<JobCode>123456</JobCode>
<CustomBooks>
<CustomBook>
<ID>10256</ID>
<Index>1</Index>
<ID>17002314</MMU_ID>
<STATUS>EU</STUD_STATUS>
<Name_First>Andrew</Name_First>
<Name_Last>Smith</Name_Last>
<ShipmentAddress>
</ShipmentAddress>
<Pages>
</Pages>
</CustomBook>
<CustomBook>
<ID>10257</ID>
<Index>2</Index>
Thanks for any help. Hopefully I can get this cracked before the weekend festivities begin
