You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by "Reuleaux, Andreas" <A....@klopotek.de> on 2000/07/19 13:55:40 UTC

comments

Hi,

[user-question:] Can anyone explain this to me?

I can successfully comment out the following echo-message

    <!--
    <echo message="hello" /> 
    -->

however, when I try to comment out this

    <!--
    <echo message="-----" /> 
    -->

ant complains:

  BUILD FAILED

  build.xml:70: Next character must be ">" terminating comment .

Thanks for any help in advance.

Andreas 


Re: comments

Posted by Akbar Ibrahim <ak...@wipro.com>.
----- Original Message -----
From: Reuleaux, Andreas <A....@klopotek.de>
To: <an...@jakarta.apache.org>
Sent: Wednesday, July 19, 2000 5:25 PM
Subject: comments


> Hi,
>
> [user-question:] Can anyone explain this to me?
>
> I can successfully comment out the following echo-message
>
>     <!--
>     <echo message="hello" />
>     -->
>
> however, when I try to comment out this
>
>     <!--
>     <echo message="-----" />
>     -->
>
> ant complains:
>
>   BUILD FAILED
>
>   build.xml:70: Next character must be ">" terminating comment .
>
> Thanks for any help in advance.
>
> Andreas
>
>

This

<!--
    <echo message="-----" />
-->

is not well-formed XML. The character sequence "--" is not allowed inside
XML comments.

Akbar






Re: comments

Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "RA" == Reuleaux, Andreas <A....@klopotek.de> writes:

 RA> Hi, [user-question:] Can anyone explain this to me?

See <URL:http://www.w3.org/TR/1998/REC-xml-19980210#sec-comments>
especially

> the string "--" (double hyphen) must not occur within comments.

Stefan