From: Bali Bali Date: 2009-07-30T01:19:20+09:00 Subject: How to add a header to xml file I have a ant build file: it needs to be changed to: After processed, ant complains: -- D:\googlecode\balionweb\test>ant compile Buildfile: build.xml BUILD FAILED D:\googlecode\balionweb\test\build.xml:12: Content is not allowed in prolog. Total time: 0 seconds -- I have problem in handling new line. Tried "\r", "\n" and "\r\n", but no luck. It looks like the first line of xml file is pretty special. How to do this? Better provide a working code. Thanks. -- Posted via http://www.ruby-forum.com/.