OxooxoO
Denoโ€ข11mo ago
Oxooxo

validateSchema getting better with v2.1.8 - but still not yet working

Hi all ๐Ÿ‘‹ ,
I want to validate some xml files to a given xsd.

npm:xsd-validator

seems to be promising so I want to use it.

import validateSchema from 'npm:xsd-validator';
`

In v2.1.7 I got the hint to install
deno install  npm:libxmljs@1.0.11

which failed with some node-gyp error. This seems to be soled now in v2.1.8.
It goes through without an error now.

Thanks :deno_logo:.

But I still get an error:

error: Uncaught (in promise) Error: Could not locate the bindings file. Tried:
 โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/build/xmljs.node
 โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/build/Debug/xmljs.node
 โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/build/Release/xmljs.node
 โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/out/Debug/xmljs.node
 โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/Debug/xmljs.node
 โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/out/Release/xmljs.node
 โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/Release/xmljs.node
 โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/build/default/xmljs.node
 โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/compiled/20.11.1/darwin/arm64/xmljs.node
    at bindings (file:///Users/me/workspace/me/Tool/node_modules/.deno/bindings@1.3.1/node_modules/bindings/bindings.js:96:9)
    at Object.<anonymous> (file:///Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/dist/lib/bindings/index.js:5:16)
    at Object.<anonymous> (file:///Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/dist/lib/bindings/index.js:49:4)
`

Any ideas?
Was this page helpful?