Updates:
Summary: validate XML files using XSD files located in data/xsd
Comment #1 on issue 837 by vangarderen.peter: validate XML files using XSD
files located in data/xsd
http://code.google.com/p/qubit-toolkit/issues/detail?id=837
The attached patch bypasses the validation check (see patch line 49) that
MJ created
for the XML import class (this stops the XML import from reporting that it
did not
find the DTD).
The patch then also uses the ValidSchema array to match it to the
appropriate import
file schema which is stored locally at /data/xsd/* and validate the schema
(see patch
line 30).
Unfortunately, there appears to be an issue with XSD validation in libxml <
2.7.3
which has not yet been packaged for Ubuntu (current release is 2.6). See the
following post:
http://us3.php.net/manual/en/domdocument.schemavalidate.php#89893
For now, the temporary workaround will be to check in ead.dtd to /web which
works
with existing code (i.e. will validate and report issues when importing EAD
XML).
When Debian/Ubuntu upgrades the libxml package we need to revisit this
issue by
applying the patch and validating xml import using schemas maintained in
/data/xsd
Attachments:
qubit_xsd_validation.patch 2.4 KB
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Issues" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/qubit-issues?hl=en
-~----------~----~----~----~------~----~------~--~---