Bug #1611

test_create: generated xml fails to validate when used for a test

Added by Giulio Moro almost 9 years ago. Updated almost 9 years ago.

Status:ResolvedStart date:2016-02-21
Priority:UrgentDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

Steps to reproduce the problem:
  • go to http://localhost:8000/test_create/test_create.html
  • drag and drop AB_example.xml
  • click "export to XML" and save file with name, e.g.: ABh.xml
  • go to http://localhost:8000/index.html?url=example_eval/ABh.xml
  • you get the following message on screen
    document.xml:1: element surveyelement: Schemas validity error : Element 'surveyelement': This element is not expected. Expected is ( surveyentry ).
    document.xml:1: element surveyelement: Schemas validity error : Element 'surveyelement': This element is not expected. Expected is ( surveyentry ).
    document.xml:1: element audioelement: Schemas validity error : Element 'audioelement', attribute 'marker': 'false' is not a valid value of the local atomic type.
    document.xml:1: element audioelement: Schemas validity error : Element 'audioelement', attribute 'marker': 'false' is not a valid value of the local atomic type.
    document.xml:1: element surveyelement: Schemas validity error : Element 'surveyelement': This element is not expected. Expected is ( surveyentry ).
    document.xml:1: element surveyelement: Schemas validity error : Element 'surveyelement': This element is not expected. Expected is ( surveyentry ).
    document.xml:1: element audioelement: Schemas validity error : Element 'audioelement', attribute 'marker': 'false' is not a valid value of the local atomic type.
    document.xml:1: element audioelement: Schemas validity error : Element 'audioelement', attribute 'marker': 'false' is not a valid value of the local atomic type.
    document.xml:1: element audioelement: Schemas validity error : Element 'audioelement', attribute 'marker': 'false' is not a valid value of the local atomic type.
    document.xml:1: element audioelement: Schemas validity error : Element 'audioelement', attribute 'marker': 'false' is not a valid value of the local atomic type.
    document.xml:1: element audioelement: Schemas validity error : Element 'audioelement', attribute 'marker': 'false' is not a valid value of the local atomic type.
    document.xml:1: element audioelement: Schemas validity error : Element 'audioelement', attribute 'marker': 'false' is not a valid value of the local atomic type.
    document.xml:1: element audioelement: Schemas validity error : Element 'audioelement', attribute 'marker': 'false' is not a valid value of the local atomic type.
    document.xml:1: element surveyelement: Schemas validity error : Element 'surveyelement': This element is not expected. Expected is ( surveyentry ).
    document.xml:1: element surveyelement: Schemas validity error : Element 'surveyelement': This element is not expected. Expected is ( surveyentry ).
    document.xml fails to validate
    

The above is valid for the default branch.
In the Dev_main branch, result is similar, just you get less error lines

document.xml:1: element surveyelement: Schemas validity error : Element 'surveyelement': This element is not expected. Expected is ( surveyentry ).
document.xml:1: element surveyelement: Schemas validity error : Element 'surveyelement': This element is not expected. Expected is ( surveyentry ).
document.xml:1: element surveyelement: Schemas validity error : Element 'surveyelement': This element is not expected. Expected is ( surveyentry ).
document.xml:1: element surveyelement: Schemas validity error : Element 'surveyelement': This element is not expected. Expected is ( surveyentry ).
document.xml:1: element surveyelement: Schemas validity error : Element 'surveyelement': This element is not expected. Expected is ( surveyentry ).
document.xml:1: element surveyelement: Schemas validity error : Element 'surveyelement': This element is not expected. Expected is ( surveyentry ).
document.xml fails to validate

Note: re-importing the exported xml file into test_create does not cause any alert.
Attached the AB_example.xml and ABh.xml (generated from Dev_main) files

ABh.xml Magnifier 4.42 KB, downloaded 10 times Giulio Moro, 2016-02-21 04:54 AM

AB_example.xml Magnifier 4.39 KB, downloaded 11 times Giulio Moro, 2016-02-21 04:54 AM

History

#1 Updated by Nicholas Jillings almost 9 years ago

  • Status changed from New to Resolved

Fixed in dev_main and tested using all example XMLs.

Also available in: Atom PDF