为什么Firefox在文档元素后显示:XML解析错误:垃圾?
错误: 然而,从控制台,期望的输出:为什么Firefox在文档元素后显示:XML解析错误:垃圾?,xml,nosql,exist-db,flwor,restxq,Xml,Nosql,Exist Db,Flwor,Restxq,错误: 然而,从控制台,期望的输出: nicholas@mordor:~$ nicholas@mordor:~$ curl http://localhost:8080/exist/rest/db/scripts/notes.xq <notes> <note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body&g
nicholas@mordor:~$
nicholas@mordor:~$ curl http://localhost:8080/exist/rest/db/scripts/notes.xq
<notes>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
<note>
foo
</note>
<note>
bar
</note>
</notes>
<notes>
<note>
foo
</note>
<note>
bar
</note>
<note>
baz
</note>
</notes>nicholas@mordor:~$
nicholas@mordor:~$
nicholas@mordor:~$ lynx http://localhost:8080/exist/rest/db/scripts/notes.xq --dump
<notes>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
<note>
foo
</note>
<note>
bar
</note>
</notes>
<notes>
<note>
foo
</note>
<note>
bar
</note>
<note>
baz
</note>
</notes>nicholas@mordor:~$
nicholas@mordor:~$
这是我能做到的最简单的事情
从GUI控制台返回的eXide
内容:
<notes>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
<note>
foo
</note>
<note>
bar
</note>
</notes>
2
<notes>
<note>
foo
</note>
<note>
bar
</note>
<note>
baz
</note>
</notes>
托弗
贾尼
提醒
这个周末别忘了我!
福
酒吧
2.
福
酒吧
巴兹
这就是我想要的结果
因此,这可能更像是浏览器的配置错误?此XML文件中有两个..
标记。XML规范规定您只能有一个根元素
要解决此问题,请删除:
</notes>
<notes>
在文件的中间。这将在一个..
根目录中提供六个..
标记
curl之所以有效,是因为它不试图解析XML,而只是显示纯文本结果。我不知道该集合中的任何文档都是查询。
</notes>
<notes>