开发者

missing ; before statement in an xml response?

I cant seem to figure out why I am getting that error "missing ; before statement" in this pa开发者_如何学Gort of my xml response...

<?xml version="1.0" encoding="utf-8"?>
<Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Time="2010-02-05T06:56:30" xsi:noNamespaceSchemaLocation="/config.xsd">

any ideas?


Even if the parser says the error is in line 1, the root cause may be anywhere in the data. That is a very common mistake to think that the actual problem in your code is the line that the parser breaks on.


Is that your entire response? It needs to be a closed element if so:

<Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Time="2010-02-05T06:56:30" xsi:noNamespaceSchemaLocation="/config.xsd" />

The change is the /> at the end. This may not be the whole error though...if this doesn't resolve the issue, please post the jQuery code making the call.


Missing semi-colon in line 1 probably refers to your javascript, not your Xml. perhaps one of the javascript includes didn't end with a semicolon, and then line 1 of the following script resuits in an error.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜