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

Importing NodeSet XMLs directly instead of generating Rust code from them #224

Open
robertsarkozi opened this issue Jul 23, 2022 · 1 comment

Comments

@robertsarkozi
Copy link

Hello,

Is there a way to import NodeSet XMLs directly into an AddressSpace object, instead of using the tools/schema/gen_nodeset.js tools?

I have a file for which it generates incorrect code for Rust version 1.59, and the generated .rs file needs to be corrected in some cases (I had to replace double quotes in description texts manually, because they were breaking up the descriptions...).
With the generated .rs file, if it was generated correctly, some kind of "compile & use library" operations could be done, but if there are compilation errors, it cannot be automated:
https://github.com/manthanrtilva/runtime_plugin/blob/master/src/main.rs

It would be nice to import the NodeSet XMLs to some XML structure (NodeSet object maybe) and then populate the AddressSpace object with that, similarly to what the OPCUAFoundation has here:
OPCFoundation/UA-.NETStandard#546

Opc.Ua.Export.UANodeSet nodeSet = Opc.Ua.Export.UANodeSet.Read(stream);

Thanks

@piperoc
Copy link

piperoc commented Feb 16, 2023

I second this requirement (I understand is a tall order). Also consider implementing and exporting facility as well.
I will be looking into this myself and will post as I learn more (just starting out with Rust...)

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

No branches or pull requests

2 participants