I'm completely new at this and am trying to figure out how to do something like this:
I've got this type of tags (lots of them) in an XML-file
<ImageData src="whatever.tif"/>
What I need to do is first change them to a reference with a number like this:
<INCL.ELEMENT FILEREF="image0001.tif" TYPE="TIFF"/>
so the number has to get leading zeros and the type has to be found in the src-attribute.
When all this has changed a list of these elements ALSO has to be added on top of the xml like this
<INCLUSIONS>
<INCL.ELEMENT FILEREF="image0001.tif" TYPE="TIFF"/>
<INCL.ELEMENT FILEREF="image0002.tif" TYPE="TIFF"/>
<INCL.ELEMENT FILEREF="image0003.tif" TYPE="TIFF"/>
<INCL.ELEMENT FILEREF="image0004.tif" TYPE="TIFF"/>
...
<INCL.ELEMENT FILEREF="image0014.tif" TYPE="TIFF"/>
</INCLUSIONS>
Since I'm new at this I'm clueless as to where to start.