If you ever wondered how to insert CRLF to a text you look at at a very specific position in the text, say like between >< in XML to structure it, then there is a trick i haven’t been aware of.
The way you might think as a C++ or unix person is \n which works for some programs like textpad. but textpad and Hebrew are enemies so i needed my faithful UltraEdit.
the trick i stumbled upon was to add ^p in the replace and put >^p< to get a CR LF action.
that was so nice and so easy to make a not valid XML file readable in the Altova XMLSpy.
Enter Line Break (CRLF) with Ultraedit
Previous post: Funny old promo and commercials of windows
Next post: Hibernate Auto-generate .hbm and .java





















{ 3 comments… read them below or add one }
Aarrgh, I already struggled over month for this. Thanks for this
this is what i was looking for, i used to do the same in my previous project after a gap of 5 months i completely forgot on how to break the xml files. thanks it was really useful
Really helpful, thanks