![Avatar](https://opcfoundation.org/wp-content/uploads/sp-resources/forum-avatars/defaults/userdefault.png)
08/18/2016
![sp_UserOfflineSmall](https://opcfoundation.org/wp-content/sp-resources/forum-themes/reboot/images/darkpack/sp_UserOfflineSmall.png)
Hello,
I have an InformationModel compiled as .xml according to the UaNodeSet.xsd schema. Now I want to generate the C# source files out of it via the Opc Foundation ModelCompiler:
https://github.com/OPCFoundati.....elCompiler
According to the description it should be able to generate source files out of any Model compiled according to the NodeSet schema. I followed the instructions and help.txt file description but I get the following Exception:
Fehler im XML-Dokument (1,2).
bei Opc.Ua.ModelCompiler.ModelCompilerValidator.Validate2(IList`1 designFilePaths, String identifierFilePath, Boolean generateIds) in D:\20_Projekte\1_ClientTool_ProduktCD\UA-ModelCompiler-master\ModelCompiler\ModelDesignerValidator.cs:Zeile 926. bei Opc.Ua.ModelCompiler.ModelGenerator2.ValidateAndUpdateIds(IList`1 designFilePaths, String identifierFilePath, UInt32 startId) in D:\20_Projekte\1_ClientTool_ProduktCD\UA-ModelCompiler-master\ModelCompiler\ModelGenerator2.cs:Zeile 80. bei Opc.Ua.ModelCompiler.Program.ProcessCommandLine2(List`1 tokens) in D:\20_Projekte\1_ClientTool_ProduktCD\UA-ModelCompiler-master\ModelCompiler\Program.cs:Zeile 297.
wurde nicht erwartet.
bei Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderModelDesign.Read25_ModelDesign()
According to the Schema the XML file starts like this:
xmlns:uax="https://opcfoundation.org/UA/2008/02/Types.xsd"
xmlns="https://opcfoundation.org/UA/2011/03/UANodeSet.xsd"
xmlns:s2="https://opcfoundation.org/UA/DI/Types.xsd"
xmlns:s3="https://opcfoundation.org/UA/AutoID/Types.xsd"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
........
I can build and generate the samples called "StandardTypes" coming with the ModelCompiler, but there is no sample .xml file using the NodeSet schema.
Maybe I missed something?
I dont know what the problem is and I would appreciate any help on this issue
Thanks in advance!
Best regards,
jul
![Avatar](https://opcfoundation.org/wp-content/uploads/sp-resources/forum-avatars/defaults/userdefault.png)
05/12/2015
![sp_UserOfflineSmall](https://opcfoundation.org/wp-content/sp-resources/forum-themes/reboot/images/darkpack/sp_UserOfflineSmall.png)
The documentation was messed up.
It has been fixed:
https://github.com/OPCFoundati.....elCompiler
You cannot use a NodeSet is an INPUT.
A NodeSet is an OUTPUT of the tool.
1 Guest(s)