I'm running Helios as well and the display.xsd parses fine, as does xnat_a_updrs3Data_display.xml. I suspect something's going wrong with your XML editing plugin. The version number that I have is so far off of yours (mine's 1.1.104.v201103021532) that I suspect they're quite different in some way.
As the error indicates, right-click the message in the Problems View and select Show Details. You can also just open up display.xsd and see what's highlighted in there. I think that if you resolve whatever's going on with understanding display.xsd you'll fix your XML errors as well, since that XML file references the display.xsd directly.
So start with the specific errors you're seeing for display.xsd.
Hi,
Any ideas?
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To post to this group, send email to xnat_di...@googlegroups.com.
To unsubscribe from this group, send email to xnat_discussi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/xnat_discussion?hl=en.
The material in this message is private and may contain Protected Healthcare Information (PHI). If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.
Give this a try to see if it clears up the error. In xnat_a_updrs3Data_display.xml, replace the whole xsi:noNamespaceSchemaLocation=”…” attribute in the <Displays> element with this:
xsi:schemaLocation="http://nrg.wustl.edu/display ../../xdat/display.xsd"
That should associate the target namespace with the schema document for the validated XML document and remove the errors.
As it happens, the reason I wasn’t getting that validation error in Eclipse is because I’d turned off the validation for that J
We’ll look into the effect of migrating from the noNamespaceSchemaLocation attribute to actually mapping the namespace explicitly.
BTW, I’ve verified that this validates properly in the XML editor, I’ve not had a chance to validate that it works in an actual build and deployment, so caveat emptor!
xsi:schemaLocation="http://nrg.wustl.edu/display../../xdat/display.xsd"
The errors in eclipse go away.
Tim
Rick,
best regards
Maurizio
To post to this group, send email to xnat_di...@googlegroups.com.
To unsubscribe from this group, send email to xnat_discussi...@googlegroups.com.
Two possible things you can try:
* I noticed I missed one other change on that line. It still works in my Eclipse without this, but for completeness you should add the xmlns="..." attribute. Thus that first line goes from this:
<Displays xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xdat/display.xsd" schema-element="xnat_a:updrs3Data" full-description="UPDRS3" brief-description="UPDRS3">
To this:
<Displays xmlns="http://nrg.wustl.edu/display" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://nrg.wustl.edu/display ../../xdat/display.xsd" schema-element="xnat_a:updrs3Data" full-description="UPDRS3" brief-description="UPDRS3">
In the XML editor in IntelliJ, I got a notice that the namespace was never used, which was true. Setting the xmlns attribute sets the default namespace for the document which means that all of the elements within that block are defined from the display.xsd by default. It seemed to work within Eclipse without that though.
* If you're still having validation issues within Eclipse, try clicking on the Project menu and selecting the Clean... command. Either select just your xnat project or let it do your whole workspace. Sometimes Eclipse doesn't catch up with changes properly, especially in XML.
To make sure we're working with the same document, I've attached a modified copy of the file that's working properly for me in Eclipse so you can compare. Small differences in XML files can lead to radically different results!
Done.
If you continue to have issues, go ahead and contact me off-list and I’ll follow up with you to get to the bottom of it. And if you don’t continue to have issues, let me know that as well, just so that we know that this can be dealt with!