sarah9680
Programmer
- Jan 15, 2014
- 4
- 0
- 0
Hi everyone!
I am trying to create a batch of files from a master xml file. Everything will be the same except for 2 fields that I need to dynamically change for each created file. The data can be put in a data file to read from or any other suggestions on how to get these values to be read by the awk program?
I have the code to create the xml files and now i'm looking how to find and replace the 2 data values with specific values.
Example:
original xml file:
<Invoice>
<InvoiceNum>ABC</InvoiceNum>
<InvoiceLine>
<InvoiceLineNumber>0001</InvoiceLineNumber>
I would need to replace these values with values from a text value..
data file:
ABC, 123
DEF, 456
Thanks!
I am trying to create a batch of files from a master xml file. Everything will be the same except for 2 fields that I need to dynamically change for each created file. The data can be put in a data file to read from or any other suggestions on how to get these values to be read by the awk program?
I have the code to create the xml files and now i'm looking how to find and replace the 2 data values with specific values.
Example:
original xml file:
<Invoice>
<InvoiceNum>ABC</InvoiceNum>
<InvoiceLine>
<InvoiceLineNumber>0001</InvoiceLineNumber>
I would need to replace these values with values from a text value..
data file:
ABC, 123
DEF, 456
Thanks!