我一直在使用aws-mturk-clt工具集。我最近回到了我的项目,该项目一直在运行,但现在当我尝试使用loadHITs.sh
命令提交HIT时,我收到此错误:
[ - 1,-1] cvc-elt.1:找不到元素的声明 'ExternalQuestion'
据我所知,我的项目代码和目录结构从以前工作时没有任何变化。在external_hit.question中引用了XML模式:
<?xml version="1.0"?>
<!-- Note the inclusion of the $urls variable which is defined as a field
in the input file. Apache Velocity is the template engine that is used to
perform the merging of variables into template files. You can learn more
about Velocity's capabilities at http://velocity.apache.org. -->
<ExternalQuestion xmlns="https://mechanicalturk.amazonaws.com/AWSMechanicalTurkDataSchemas/2006-07-14/ExternalQuestion.xsd">
<ExternalURL>http://XXX.XXX.XXX.XXX/webpage.jsp</ExternalURL>
<FrameHeight>600</FrameHeight>
</ExternalQuestion>
我检查了架构网址,架构仍然存在,似乎已正确定义。
让我知道所需的任何进一步信息。谢谢!
答案 0 :(得分:1)
问题是由于先前执行的全局搜索替换,我使用https来引用模式。当我恢复到http时,问题就消失了:
<ExternalQuestion xmlns="http://mechanicalturk.amazonaws.com/AWSMechanicalTurkDataSchemas/2006-07-14/ExternalQuestion.xsd">