Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
XML语法问题_Xml_Syntax_Syntax Error - Fatal编程技术网

XML语法问题

XML语法问题,xml,syntax,syntax-error,Xml,Syntax,Syntax Error,我在尝试编译URL的XML代码时产生了一个错误。代码如下: <href>http://ezproxy.uis.edu:2048/login?url=http://search.ebscohost.com/login.aspx?authtype=ip,uid&profile=ehost&defaultdb=27h</href> http://ezproxy.uis.edu:2048/login?url=http://search.ebscohost.com

我在尝试编译URL的XML代码时产生了一个错误。代码如下:

<href>http://ezproxy.uis.edu:2048/login?url=http://search.ebscohost.com/login.aspx?authtype=ip,uid&profile=ehost&defaultdb=27h</href>
http://ezproxy.uis.edu:2048/login?url=http://search.ebscohost.com/login.aspx?authtype=ip,uid&profile=ehost&defaultdb=27h

编译器告诉我在概要文件之后需要一个分号——但这会破坏URL。通常情况下,这不会是一个问题(其他URL工作正常),但有相当多的URL采用这种格式。我能做些什么来修复它?另外,我对XML还相当陌生。

&
在XML中必须编码为
&。否则,之后的任何内容都将被视为使用实体的错误尝试