Hi Gisella,
You can probably run the fixcrlf ant task to correct this, info for 1.7
is here: http://ant.apache.org/manual/Tasks/fixcrlf.html
Which platform did you run the Xmltask on?
Also, are the Unix "\n" appearing inside the comment block or outside?
For example:
<! -- this is a comment \n
-->
Mark Coffin
mcof...@aalsolutions.com
Phone: 905.632.0864
1.800.668.8486
Fax: 905.632.2605
www.aalsolutions.com <http://www.aalsolutions.com/>
________________________________
From: Saavedra, Gisella [mailto:gsaave...@zebra.com]
Sent: Thursday, September 02, 2010 6:46 PM
To: xmltask-users@lists.sourceforge.net
Subject: [Xmltask-users] XML comment line end-of-line
I have two XML files. I am merging data from file 2 into file 1.
In file 1, I have some comments, written in the traditional way( <!--
comment -->)
When I execute the xmltask, any nodes inserted in my destination file
are OK, although the whole XML contents is rewritten (I could see the
non-wrapping for each node).
But the original comments get the original "\r\n" end -of -line
replaced with "\n" as per UNIX. All the nodes I added get added with
"\r\n" as the end-of-line.
So, I get all the end of lines as "\r\n" (Windows) but my comment lines
have "\n" (UNIX)
Is this a bug?
What can I do?
Thanks,
Gisella
--------------------
Comments in XML
The syntax for writing comments in XML is similar to that of HTML.
<!-- This is a comment -->
________________________________
- CONFIDENTIAL-
This email and any files transmitted with it are confidential, and may
also be legally privileged. If you are not the intended recipient, you
may not review, use, copy, or distribute this message. If you receive
this email in error, please notify the sender immediately by reply email
and then delete this email.
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Xmltask-users mailing list
Xmltask-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xmltask-users