Skip to content

Correct the handling of absolute path for DynaML.xsd: v1.3.0 import.exe can fail without error #346

@jhaasdyk-au

Description

@jhaasdyk-au

Brief description
Where the absolute path to DynaML.xsd is supplied in (any of the) XML input file(s), failure to provide the xsd at that absolute path results in import.exe exiting without error message.

Background
RE: dynadjust-windows-mkl.zip; dynadjust-1.3.0-windows-openblas.zip
Image

Recent changes were made to handling absolute vs relative path for DynaML.xsd (e.g. 12d977c)

Note: DynaML.xsd is ALSO required in the current directory, otherwise an error is reported Error: ParseXML(): DynaML.xsd schema file not found in the current directory. This test is performed even if an absolute path is supplied in all xml input files.

Basic requirements
Support DynaML.xsd in relative path (e.g. current directory)
Support DynaML.xsd in PATH (if not: why support current directory only, and not just in PATH?)
Support DynaML.xsd in absolute path; over-ride path(s) above (but only for the single file in question)

Consider (1): report path to DynaML.xsd at time of parsing.
Consider (2): is there any use-case to apply more than one xsd? or just the first encountered?
examples (report one or more of the following):
+ Parsing:
DynaML.xsd supplied at Input Folder (see above)
DynaML.xsd supplied at PATH C:\DynAdjust\exe
301955_stn.xml... Done. Loaded 7 stations in 0.028s DynaML.xsd supplied at absolute path
or
301955_stn.xml... Done. Loaded 7 stations in 0.028s Ignored DynaML.xsd at absolute path in file header

Priority
Priority 2 - medium

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions