Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Bug in XMLSpy?

Reply
Thread Tools

Bug in XMLSpy?

 
 
Gus Gassmann
Guest
Posts: n/a
 
      11-23-2007
Just put the following comment into a file (w3.xml schema)

<!--
---------------------------------------------------------------------------
-->

I was even careful enough to put spaces after the "<!--" and "-->",
but the parser in XMLSpy complains that the
third "-" after the first gap is "grammatically unexpected". That so?
 
Reply With Quote
 
 
 
 
Pavel Lepin
Guest
Posts: n/a
 
      11-23-2007

Gus Gassmann <(E-Mail Removed)> wrote in
<(E-Mail Removed)>:
> Just put the following comment into a file (w3.xml schema)
>
> <!--
> ---------------------------------------------------------------------------
> -->
>
> I was even careful enough to put spaces after the "<!--"
> and "-->", but the parser in XMLSpy complains that the
> third "-" after the first gap is "grammatically
> unexpected".


And Altova is absolutely right this time. Both XML 1.0 4E
and XML 1.1 2E define comments as:

'<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'

See 2.5. This restriction is even spelled out in prose.

--
....also, I submit that we all must honourably commit seppuku
right now rather than serve the Dark Side by producing the
HTML 5 spec.
 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      11-23-2007
Gus Gassmann wrote:
> Just put the following comment into a file (w3.xml schema)
>
> <!--
> ---------------------------------------------------------------------------
> -->
>
> I was even careful enough to put spaces after the "<!--" and "-->",
> but the parser in XMLSpy complains that the
> third "-" after the first gap is "grammatically unexpected". That so?


Check the specification <URL:http://www.w3.org/TR/REC-xml/#sec-comments>
which states "the string "--" (double-hyphen) MUST NOT occur within
comments".
--

Martin Honnen
http://JavaScript.FAQTs.com/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
*bug* *bug* *bug* David Raleigh Arnold Firefox 12 04-02-2007 03:13 AM
ASP.NET Login control bug or SQL 2005 bug? RedEye ASP .Net 2 12-13-2005 10:57 AM
Re: BUG? OR NOT A BUG? John ASP .Net 2 09-21-2005 10:31 AM
Bug Parade Bug 4953793 Michel Joly de Lotbiniere Java 4 12-02-2003 05:05 AM
how to report bug to g++ ? got a bug and fixed up source code DarkSpy C++ 4 06-27-2003 09:05 AM



Advertisments