Link to home
Start Free TrialLog in
Avatar of Rohit Bajaj
Rohit BajajFlag for India

asked on

Intellij adding new line in xml

HI,
In my java application i am using an xml file..
here is a sample :
<nomatch>
                    Oops! Looks like something's not right with one of the email IDs. Let's try
                    again.
                </nomatch>

Open in new window

Here the again has come into next line but this is not intended, This happend when i formatted the xml using Commadn + Alt + L in intellij idea to make it look cleaner and readable..
But now when i am reading this xml content using jaxb its picking up a newline between again and other other....

what way can i resolve this ?

Thanks
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

This happend when i formatted the xml using Commadn + Alt + L in intellij idea to make it look cleaner and readable..
But the tags aren't even aligned ...
ASKER CERTIFIED SOLUTION
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Rohit Bajaj

ASKER

the tags are aligned on my intelij idea...some copy paste erro