I have a huge xml as follows which I have to assign to a single string. This xml is really huge to so I have to go every line and put " " and + before each line. How can I do that with eclipse's find/replace using regEx.
<Student>
<name></name>
<age></age>
<class></class>
<section></section>
// More tags
</Student>
What I want :
public final String studentRequest = "<Student>"
+ " <name></name> "
+ " <age></age> "
+ " <class></class>"
+ " <section></section> "
+ " </Student>" ;
Thanks in advance.