Estoy intentando validar un documento XML con la siguiente declaracion pero me da un error del doctype y cuando le pongo el doctype me da otros errores, ¿como se validan documentos XML con schemas?
No pongo la pagina donde esta el schema porque no me deja poner paginas web pero es imsglobal.org/xsd/imsqti_v2p1 con el http y www delante
Código:
<?xml version="1.0" encoding="UTF-8"?> <assessmentItem xmlns="pagina donde esta el xsd" xmlns:xsi="pagina del w3c de los schemas" xsi:schemaLocation="la misma que la primera pero acabada en imsqti_v2p1.xsd" identifier="choice" title="Unattended Luggage" adaptive="false" timeDependent="false"> <responseDeclaration identifier="RESPONSE" cardinality="single" baseType="identifier"> <correctResponse> <value>ChoiceA</value> </correctResponse> </responseDeclaration> <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="integer"> <defaultValue> <value>0</value> </defaultValue> </outcomeDeclaration> <itemBody> <p>Look at the text in the picture.</p> <p> Hola </p> <choiceInteraction responseIdentifier="RESPONSE" shuffle="false" maxChoices="1"> <prompt>What does it say?</prompt> <simpleChoice identifier="ChoiceA">You must stay with your luggage at all times.</simpleChoice> <simpleChoice identifier="ChoiceB">Do not let someone else look after your luggage.</simpleChoice> <simpleChoice identifier="ChoiceC">Remember your luggage when you leave.</simpleChoice> </choiceInteraction> </itemBody> </assessmentItem>