在针对其架构验证我的 xml 文档时出现错误。请帮忙。
下面是我要验证的 XML 文档。
<?xml version="1.0" encoding="utf-8"?>
<QuestionForm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://mechanicalturk.amazonaws.com/AWSMechanicalTurkDataSchemas/2005-10-01/QuestionForm.xsd">
<Overview>
<Text>This is overview</Text>
</Overview>
<Question>
<QuestionIdentifier>nextmove</QuestionIdentifier>
<DisplayName>Display Name</DisplayName>
<IsRequired>true</IsRequired>
<QuestionContent>
<Text>The Main Question will go here?</Text>
</QuestionContent>
<AnswerSpecification>
<FreeTextAnswer>
<Constraints>
<IsNumeric minValue="0" maxValue="9999" />
<Length minLength="0" maxLength="4" />
</Constraints>
<NumberOfLinesSuggestion>1</NumberOfLinesSuggestion>
</FreeTextAnswer>
</AnswerSpecification>
</Question>
</QuestionForm>
这是错误消息
未处理的异常:Amazon.WebServices.MechanicalTurk.Exceptions.ParseErrorException:解析您的请求中的 XML 问题或答案数据时出错。请确保数据格式正确并根据适当的模式进行验证。详细信息:cvc-complex-type.2.4.a:发现以元素“QuestionContent”开头的无效内容。'{" http://mechanicalturk.amazonaws.com/AWSMechanicalTurkDataSchemas/2005-10-01/QuestionForm.xsd ":QuestionIdentifier}' 之一是预期的。(14084243 91173 s)
在 Amazon.WebServices.MechanicalTurk.MTurkClient.ProcessErrors(ErrorsError[] 错误, Object ret, OperationRequest opsReq)
在 Amazon.WebServices.MechanicalTurk.MTurkClient.SendRequest(Object req)
在 Amazon.WebServices.MechanicalTurk.MTurkClient.CreateHIT(CreateHITRequest 请求)
[1]: http://mechanicalturk.amazonaws.com/AWSMechanicalTurkDataSchemas/2005-10-01/QuestionForm.xsd