Hi,
I have a very basic knowledge of shell scripting & would like some help with a little problem I have.
I have a lot of xml documents in a directory and I would like to merge them in one xml. The names of the documents are like:
111111_____-2005-2222___EN.xml
111111_____A-2005-2222___EN.xml
111111_____2005-2222___ EN.xml
111111_____20052222___ EN.xml
The new xml document nust have this format:
[LEFT][LEFT]<?xml version="1.0" encoding="UTF-8" standalone="no" lang="EN"?>
<testo> [/LEFT]
[LEFT]
<Document DocIDOrig = "111111" DocID = "2222" DocType = "AA" Proc = "COD-2012-06" YEAR="2005">
<body>
periexomeno
</body>
</Document> [/LEFT]
[LEFT]
<Document DocIDOrig = "11111x" DocID = "222x" DocType = "AA" Proc = "COD-2012-06" YEAR="2005">
<body>
periexomeno
</body>
</Document> [/LEFT]
[LEFT]
</testo >[/LEFT][/LEFT]
About the tags:
lang --- there is in the files' name
Document DocIDOrig ---- there is in the files' name
DocID ---- there is in the files' name
DocType ---- there is in the files' name
Proc ---- there is in the files' name or there is tag in the document
YEAR ---- there is in the files' name
BODY ---- there is in the xml document.
Thank you in advance!
Regards,
Gianni