Import/Export
- model:loadXmlModels(modelFiles)
Load XML models into the address space.
- ModelFiles:
Array of file paths, HTTP/HTTPS URLs, or XML document strings.
For every new model, a new namespace is created with the next index after the last added namespace. Namespace index 0 is reserved for the default namespace ‘http://opcfoundation.org/UA/’. If model with same URI already exists, it will be merged with the new one.
- model:exportXml(output[, namespaceUris])
Export XML models by calling
outputwith XML chunks. IfnamespaceUrisis not provided, all namespaces are exported.- Output:
Callback function that receives XML string chunks.
- NamespaceUris:
Array of namespace URIs to export.
- Returns:
nil
- Throws:
error in case of errors.