I have an xml
file in which I expect to find some particular tags with values that I want to use to build an url. I would like to:
- find these values
- make an url with them
- insert this url at the beginning of a file
For example, given xml
file starting with:
<?xml version="1.0" encoding="utf-8"?>
<file_1_doc>
<biul>1</biul>
<poz>33792</poz>
<date_pub>2015-02-16</date_pub>
(...)
I want to produce an url in the base form:
http://foo.com/index.php?biul=show&position=[poz]&publdate=[date_pub]
having for the example above:
http://foo.com/index.php?biul=show&position=33792&publdate=2015-02-16