"Thomas Jollans" <no****@jollans.com> wrote in message
news:bv*************@news.t-online.com...
i have an xml file
<p:tag_one xmlns='ns'>
<p:tag_two>
text
</p:tag_two>
<p:tag_three/>
</p:tag_one>
and want p:tag_two to be tag_two for the app, p:tag_one to be tag_one...
how do i do this with java xml dom?
thanx in advance,
thomas
Walk the entire tree-structure of the original XML document (with the p
prefix). While doing that, copy each node and make a copy of the original
XML. But use the getLocalName method/attribute instead of the getNodeName
(the actual method names may be spelled a little differently, though).
Or use an XSL transformation do to the same.
-- Anton.