Bug in XMLSpy?

Discussion in 'XML' started by Gus Gassmann, Nov 23, 2007.

  1. Gus Gassmann

    Gus Gassmann Guest

    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?
     
    Gus Gassmann, Nov 23, 2007
    #1
    1. Advertising

  2. Gus Gassmann

    Pavel Lepin Guest

    Gus Gassmann <> wrote in
    <>:
    > 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.
     
    Pavel Lepin, Nov 23, 2007
    #2
    1. Advertising

  3. 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/
     
    Martin Honnen, Nov 23, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Conan Reidy
    Replies:
    1
    Views:
    374
    Andrew Thompson
    Feb 5, 2004
  2. kevin bailey

    is xmlspy way ahead of everyone else

    kevin bailey, Jun 24, 2003, in forum: XML
    Replies:
    4
    Views:
    1,783
    Aslam
    Jul 7, 2003
  3. Altova Announcements
    Replies:
    0
    Views:
    681
    Altova Announcements
    May 25, 2004
  4. Patrick J. Maloney
    Replies:
    2
    Views:
    580
    Patrick J. Maloney
    Nov 8, 2004
  5. KaR
    Replies:
    0
    Views:
    687
Loading...

Share This Page