Re: [xml] comment syntax



On Fri, 05 Jan 2007 14:35:23 -0800, William M. Brack wrote:

See the XML spec - http://www.w3.org/TR/xml/#sec-comments - which
basically says that any "normal" character except '-' may go at positions
X and Y (i.e. white space is not required).


[...]

Thanks for this explanation.  At the site you reference,
I see:
   Comments may appear anywhere in a document
   outside other markup; ...

Consider:

   <MyDoc>
      <!--Here is my special tag-->
      <MySpecialTag>
         stuff in tag
      </MySpecialTag>
   </MyDoc>

Now is a sense, the comment is within markup, being between
the two MyDoc tags.  I assume that this is NOT what they mean,
and that the comment is ok.  Right?

Thanks again,
Mike.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]