cancel
Showing results for 
Search instead for 
Did you mean: 

Looking for example to replace href tags in XML SOAP

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Have you tried transforming this using XSLT?

Regards

Ayyapparaj

Former Member
0 Kudos

I dont think XSLT will do as I don't have a schema.

Answers (0)