Skip to content

Export empty namespace #667

Answered by xydan83
roin93 asked this question in Q&A
Sep 22, 2021 · 4 comments · 3 replies
Discussion options

You must be logged in to vote

Alternatively, you can override the _add_namespaces method, remove the filter checking for nodes from it.

    async def _add_namespaces(self, nodes):
        ns_to_export: list = (await self.server.get_namespace_array())[1:]  # ignore OPC Foundation namespace

        # write namespaces to xml
        self._add_namespace_uri_els(ns_to_export)

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@roin93
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@roin93
Comment options

@xydan83
Comment options

Answer selected by roin93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants