This is a migrated thread and some comments may be shown as answers.

What does this mean?

1 Answer 51 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Boris
Top achievements
Rank 1
Boris asked on 28 Aug 2013, 07:23 PM
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" -->
</style>
<script language="javascript" type="text/javascript">
<!-- #include file="myHandler.js" -->
    startHandler();
</script>

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.

Suggestions?


1 Answer, 1 is accepted

Sort by
0
Zdravko
Telerik team
answered on 29 Aug 2013, 03:34 PM
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.
Thanks.

Regards,
Zdravko
Telerik
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.
Tags
General Discussions
Asked by
Boris
Top achievements
Rank 1
Answers by
Zdravko
Telerik team
Share this question
or