Import/Export
- model.loadXmlModels(filePath(s) | url(s) | fileContent)
Load XML models from the file.
- FilePath:
File path to XML model.
- Url:
URL to XML model.
- FileContent:
Content of XML model.
For every new model new namespace is created with next index after last added namespace. Namespace index 0 reserved for 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 to the file. If namespaceUris is not provided, all namespaces will be exported.
- Output:
File path or callback function to export XML models.
- NamespaceUris:
Array of namespace URIs to export.
- Returns:
nil
- Throws:
error in case of errors.