I'm a novice to XML (and code in general), hence I apologise in advance if this question sounds dull or redundant.
I'm working on project which output will be a printed document with about 750 directories. I'm working on Indesign with imported XML file. I structured the following, simple process:
- Authors upload content on Wordpress;
- content is exported into separate XML files (all with same structure) into one folder on my computer;
- XML file is imported into Indesign to then map XML tags with styles.
However, Indesign can handle one single XML file only, therefore I'd need to combine all the XML from the folder into a single one. Considering the amount of XML file (about 25), I could do this manually, but I saw an opportunity to learn something new and automate the process.
I'm sure there are multiple ways to go about this one. I'd imagine you can either combine all XML file and output a new one in some programmatic fashion (action?), or have a simple XML file which sources all the others from the folder on my computer. I'm aware of XSLT too, but I couldn't figure out a way of using it.
On a secondary note, these XML file don't feature some characters, such as ’
and I was wondering if it is possible to perform a find/replace while merging the multiple xml files into the single one.
I hope to find a solution here and learn something new!
Many thanks, a