What does this mean?

Thread is closed for posting
2 posts, 0 answers
  1. Boris
    Boris avatar
    289 posts
    Member since:
    Oct 2012

    Posted 28 Aug 2013 Link to this post

    I've just been assigned a piece of legacy code to debug and I have JustCode installed on my machine.
    I have a small text file as follows:  (Actually the original programmer called it an .inc file.)

    <style type="text/css">
    <!--#include file="myFile.css" -->
    <!--#include file="../Styles/global.css" -->
    <script language="javascript" type="text/javascript">
    <!-- #include file="myHandler.js" -->

    This file in turn is included in an html file.

    JustCode is highlighting the <Script and complaining:  XML document cannot contain multiple root level elements.  

    I've examined the included Javascript file and it seems quite conventional.  (In any case JustCode doesn't show any warnings within it.)

    Actually this alone does not bother me that much.  I'm just hoping that if I understand this it might eliminate this file as a source of a far greater (and probably non-Telerik) problem I'm currently having.


  2. Zdravko
    Zdravko avatar
    657 posts

    Posted 29 Aug 2013 Link to this post

    Hi Boris,

     Thanks for contacting us.
    I reproduced your error which seems to be thrown by VS but not from JustCode.
    It seems that the file is analyzed as xml or similar and it is expected to has only one root element. I am not sure whether it will help if you put the whole content in a div tag.
    Here I found an article with the same issue represented.

    Share what you think about JustCode with us, so we can help you even better! You can use the built-in feedback tool inside JustCode, our forum, or our JustCode feedback portal.
Back to Top