Skip to Content
0
Former Member
Feb 20, 2009 at 09:25 PM

Looking for example to replace href tags in XML SOAP

84 Views

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.