Hello,
I want to "transform" a XML document, but not in the sense of XSLT. I have a lot of documents, that contain primary keys of a database, like:
<report id="123"> ... </report>

Now the DBA must do something with the db (don't ask me what it is, I simply don't know it), that will change almost all of the primary keys, which means, that the references in my XML documents will be wrong. Therefore I will have to read/parse the XML documents, transform all of the "old" primary keys to the "new" primary keys, and write out the documents again.

Because I used Digester quite often already, I wondered if it could be used for this problem.

My question is (finally): Can Digester tell me, which tags he has parsed already, and is parsing at the moment? Then I could simply write this data, to a writer of my choice, and while parsing the primary keys, I could transform them and write them out.

I haven't found anything, how this could be done, with the default functionality of digester.
Any ideas, how I could extend digester to achieve this?

thanks

Benjamin


--
To unsubscribe, e-mail: <mailto:commons-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-user-help@;jakarta.apache.org>

Reply via email to