Hi HonConfiance, To load the XML structure from Azure into memory and write it with OPC UA, you can follow these steps:
Store the XML file in Azure: Upload the XML file to an Azure storage service, such as Azure Blob Storage, to securely store and retrieve it when needed.
Retrieve the XML file from Azure: Use the appropriate SDK or programming language to retrieve the XML file from Azure Blob Storage. Authenticate with Azure and access the storage account where the XML file is stored. Retrieve the file as a byte stream or string.
Parse the XML data: Once you have retrieved the XML file, parse the XML data using an XML parsing library in your preferred programming language. This will help you convert the XML into a structured format that can be easily manipulated and loaded into memory.
Map the XML structure to OPC UA variables: After parsing the XML data, map its structure to OPC UA variables or nodes. Create OPC UA variables with the appropriate data types and hierarchy that match the structure defined in the XML. Use the available APIs or methods provided by your OPC UA SDK or library to create the variables and define their properties.
Write OPC UA variables: With the XML structure mapped to OPC UA variables, you can now write the data from the variables to the OPC UA server. Utilize OPC UA communication methods, such as the Write service or directly setting values on the OPC UA variables, to accomplish this.
It's important be aware of the fast that the exact implementation details may vary depending on the OPC UA SDK or library you are using and the programming language you prefer. Consult the documentation and examples provided with your chosen OPC UA SDK for specific instructions and code samples on loading the XML structure, creating OPC UA variables, and writing data to an OPC UA server hosted in Azure.
I hope this helps?