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

Support for XmlElement in XML bodies. #55

Merged
merged 1 commit into from
Mar 5, 2025
Merged

Conversation

einarmo
Copy link
Contributor

@einarmo einarmo commented Mar 5, 2025

This is technically deprecated in the OPC-UA standard, but it's still good to have support for it.

The old solution just used a type-alias for UAString, which is fine for both JSON and binary, but won't work properly for XML. The lack of a concrete, unique type also caused issues with variant.

This adds a newtype for it instead, just a wrapper around UAString.

Reading the contents of an element as raw XML was quite hairy, but the solution I ended up with seems to work fine.

This is technically deprecated in the OPC-UA standard, but it's still
good to have support for it.

The old solution just used a type-alias for UAString, which is fine for
both JSON and binary, but won't work properly for XML. The lack of a
concrete, unique type also caused issues with variant.

This adds a newtype for it instead, just a wrapper around UAString.
Copy link
Contributor

@svanharmelen svanharmelen left a comment

Choose a reason for hiding this comment

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

A bit hairy indeed, but nice to have support for this one as well.

@einarmo einarmo merged commit f9de42e into master Mar 5, 2025
6 checks passed
@einarmo einarmo deleted the finish-xml-element branch March 5, 2025 12:20
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

Successfully merging this pull request may close these issues.

2 participants