commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Janusz Studzizba (JIRA)" <>
Subject [jira] Created: (CONFIGURATION-238) - illegal new line char in xml comment
Date Wed, 15 Nov 2006 09:29:37 GMT - illegal new line char in xml comment

                 Key: CONFIGURATION-238
             Project: Commons Configuration
          Issue Type: Bug
    Affects Versions: 1.2 Final
         Environment: Windows XP x64
            Reporter: Janusz Studzizba

I have the following conf.xml.
<?xml version="1.0" encoding="UTF-8"?>
    <!-- comment 
   new line in comment -->

Edited with Vim looks nice.
I use XMLConfiguration to process it.

I perform the following operations:
    XMLConfiguration config = new XMLConfiguration("c:\\conf.xml");;

After; my conf.xml file, when edited in Vim, contains additional ^M char at
the end of each line. This is very disturbing.

There must be a bug in XMLConfiguration when operating on <!-- --> xml comments which
contain new line characters - as in my example.
    <!-- comment 
   new line in comment -->
My original conf.xml contained 0D 0A chars as a new line in comment,
after calling;  there is ONLY 0A char there!

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message