Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Website: recommendation for validator #36

Open
1 of 9 tasks
SJagodzinski opened this issue Mar 31, 2017 · 12 comments
Open
1 of 9 tasks

Website: recommendation for validator #36

SJagodzinski opened this issue Mar 31, 2017 · 12 comments
Assignees

Comments

@SJagodzinski
Copy link
Contributor

Recommend tools for validation for EAC-CPF

Creator of issue

  1. Silke Jagodzinski
  2. TS-EAS: EAC-CPF subgroup
  3. s.jagodzinski@bundesarchiv.de or silkejagodzinski@gmail.com

The issue relates to

  • EAC-CPF schema issue
  • EAC-CPF Tag Library issue
  • EAD schema issue
  • EAD Tag Library issue
  • Schema issue
  • Tag Library issue
  • Suggestions for all schemas
  • Suggestions for all Tag Libraries
  • Other

Wanted change/feature

We spent time on finding a validator that we could use to test the EAC-CPF xml as standard validators would not work. It would have been great if a specific or set of validators could have been recommended so that institutions could accurately validation their EAC-CPF xml data.

[K. Cox]

@karinbredenberg
Copy link
Member

This sounds strange, the ordinary validators should work. Tests are need! Would say it is a schema issue.

@SJagodzinski
Copy link
Contributor Author

I could go back to K. Cox and ask for her validator.
Never had problems with xsd or rng files so far and never heard about that before.

@karinbredenberg
Copy link
Member

Do that so we see what the problem are. Try to get as much info as you can.

@Kirstycox
Copy link

Hi Karin

Apologies for the tardy reply but we found issues when attempting to validate our EAC-CPF xml files as 'newbies' we struggled a bit.

We found that as the EAC-CPF xml uses a schema that our xml files did not validate using https://validator.w3.org/ (which of course is a more authoritative and well developed support community). Instead we used https://www.xmlvalidation.com/.

We guessed that this was because the w3 validator uses DTDs and not schemas? Is this correct.

So what we would like to know and also would be of some potential help to others adopting EAC-CPF if the EAC-CPF community recommends an authoritative schema validator. In retropect we should have asked for assistance from the EAD listserv community but we didn't.

Thanks, Kirsty

@fordmadox
Copy link
Member

fordmadox commented Jan 17, 2018

Hi, @Kirstycox : can you provide a sample EAC file?

The https://validator.w3.org validator will only work for HTML files, I believe, so you cannot validate EAC-CPF files with that tool.

I did test the https://www.xmlvalidation.com/ validation tool with an EAC file, and it appeared to work fine, as long as I checked the "Validate against external XML schema" button. I didn't do much digging into that, though, to determine how accurate the results are with that tool. The About page doesn't mention anything about how it operates, so I honestly don't know with just a quick look.

If you use a free text editor, however, there might be an option to do XML validation in that tool. For example, here's how to perform XSD validations with Notepad++: https://stackoverflow.com/a/30167471

Another free way to validate XML files would be to use a tool like Saxon-HE. https://www.saxonica.com/html/documentation/schema-processing/commandline.html . This would require a bit more effort to get started, since you'd need to download some extra files, but it would provide a host of benefits, such as the ability to perform validations in bulk.

I use oXygen XML Editor almost exclusively for working with XML, which makes validating files in bulk very easy.

It sounds like there would be a benefit to provide other examples of how to validate EAC files, however, so we'll definitely discuss that.

@MicheleCombs
Copy link

MicheleCombs commented Jan 17, 2018 via email

@Kirstycox
Copy link

Hi Michele,

Just tried to attach an EAC-CPF xml file but not a supported file type - If you wish I can email you directly or our entire EAC-CPF dataset is available for download at the following https://natlib.govt.nz/about-us/open-data/turnbull-names-metadata

Cheers, Kirsty

@MicheleCombs
Copy link

MicheleCombs commented Jan 18, 2018 via email

@fordmadox
Copy link
Member

@Kirstycox : I wanted to follow up with you to find out if you've found a satisfactory solution for validating EAC files. If not, have you tried the using a free text editor, such as https://notepad-plus-plus.org, and the solution suggested here: https://stackoverflow.com/questions/15436183/using-notepad-to-validate-xml-against-an-xsd/30167471#30167471 ?

@Kirstycox
Copy link

Kirstycox commented Mar 26, 2018 via email

@MicheleCombs
Copy link

MicheleCombs commented Mar 28, 2018 via email

@Kirstycox
Copy link

Kirstycox commented May 19, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants