Skip to content

Updated h5dump --xml#6394

Open
bmribler wants to merge 2 commits intoHDFGroup:developfrom
bmribler:update_xsdfile
Open

Updated h5dump --xml#6394
bmribler wants to merge 2 commits intoHDFGroup:developfrom
bmribler:update_xsdfile

Conversation

@bmribler
Copy link
Copy Markdown
Collaborator

@bmribler bmribler commented May 4, 2026

The location of the files HDF5-File.xsd and HDF5-File.dtd no longer exists, and the files were added to the repo (PR #5490). Before the --xml option is actually removed, running the h5dump --xml tests will fail. This PR updated h5dump and the expected output to use the correct files' location and actually completed the ticket HELP-2668.

The location of the files HDF5-File.xsd and HDF5-File.dtd no longer exists, and
the files were added to the repo (PR HDFGroup#5490).  Before the --xml is actually removed,
running the h5dump tests will fail.  This PR updated h5dump and the expected output
to use the correct files' location and actually completed the ticket HELP-2668.
@jhendersonHDF
Copy link
Copy Markdown
Collaborator

Before the --xml option is actually removed, running the h5dump --xml tests will fail.

@bmribler what did you mean by this?

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<hdf5:HDF5-File xmlns:hdf5="http://hdfgroup.org/HDF5/XML/schema/HDF5-File.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hdfgroup.org/HDF5/XML/schema/HDF5-File http://www.hdfgroup.org/HDF5/XML/schema/HDF5-File.xsd">
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At a first glance, it seems to me like these should remain as web URLs rather than local files

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The files are now in the repo. Should I use the GH repo develop branch for the location?

Comment thread tools/src/h5dump/h5dump.c
@@ -1597,8 +1597,8 @@ main(int argc, char *argv[])
"<%sHDF5-File xmlns:%s=\"http://hdfgroup.org/HDF5/XML/schema/HDF5-File.xsd\" "
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But having said that, it seems this would need to be updated as well if changing the URLs

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are just names, the files won't be looked for by anything, if I'm not mistaken. I was thinking about using the GH repo URLs, but waited to ask when this is brought up.

@bmribler
Copy link
Copy Markdown
Collaborator Author

bmribler commented May 4, 2026

Before the --xml option is actually removed, running the h5dump --xml tests will fail.

@bmribler what did you mean by this?

@jhendersonHDF Thanks for looking at this. I'm not sure which part of that sentence you're asking about, so I explain the full context. --xml is deprecated, but before it is officially removed from h5dump, the tests should still work. Currently, because the location of those files no longer exist, tests will fail when those tests run. Please let me know if I have misunderstood anything.

@jhendersonHDF
Copy link
Copy Markdown
Collaborator

@jhendersonHDF Thanks for looking at this. I'm not sure which part of that sentence you're asking about, so I explain the full context. --xml is deprecated, but before it is officially removed from h5dump, the tests should still work. Currently, because the location of those files no longer exist, tests will fail when those tests run. Please let me know if I have misunderstood anything.

I was asking about the part mentioning those tests failing since we currently run the h5dump xml tests and they pass as they're only checking the diff output

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

Labels

None yet

Projects

Status: To be triaged

Development

Successfully merging this pull request may close these issues.

3 participants