on 02-20-2009 9:25 PM
Hi,
has anyone seen or got an example of java code which would go though an xml file and replace all href tags with their actual contents...
exp :
<class>
<students>
<item href="id1"/>
<item href="id2"/>
</students>
</class>
<student id="id1">
<name>Thierry</name>
<lastname>Dagnino</lastname>
</student>
<student id="id2">
<name>Bozo</name>
<lastname>the Clown</lastname>
</student>
would become
<class>
<students>
<student>
<name>Thierry</name>
<lastname>Dagnino</lastname>
</student>
<student>
<name>Bozo</name>
<lastname>the Clown</lastname>
</student>
</students>
</class>
Anyway this whole question is because I'm looking into writing a axis handler to do this kind of job to remove multiref tags but I don't want to reinvent the wheel...
Thanks.
Hi,
Have you tried transforming this using XSLT?
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.