XML file generated by the modeler

Questions regarding the use of UaModeler

Moderator: uamodeler

Post Reply
sebastien_a
Sr. Member
Sr. Member
Posts: 12
Joined: 13 Apr 2012, 10:23

XML file generated by the modeler

Post by sebastien_a »

Hi Unified Automation Team,

I use the Uamodeler tool to build my nodespace.
We will plan to use in the futur your XML parser (still in beta) that my colleague is testing.

The problem is that the nodeset XML file generated by the modeler seems not well formatted. Below is a very simple XML file generated by UAmodeler :



http://yourorganisation.org/test2/
http://opcfoundation.org/UA/


ns=1;i=35
ns=1;i=40
ns=1;i=47


test

i=5002
ns=1;i=58
ns=1;i=85



BaseObject

ns=1;i=58
i=5001




You can see the problem in bold : the ns=1 seems to be not necessary because the reference are related to the OPC Foundation XSD.

To the opposite, I think there must be ns=1 to the other node like this :


test

ns=1;i=5002
ns=1;i=58
ns=1;i=85



BaseObject

ns=1;i=58
ns=1;i=5001




It is as if the XSD was swapped. Maybe should I set something particular in settings but I don't know what to do.

Any help is appreciated.

Regards,

Sébastien

User avatar
Support Team
Hero Member
Hero Member
Posts: 3068
Joined: 18 Mar 2011, 15:09

Re:XML file generated by the modeler

Post by Support Team »

Hi Sébastien,

The order of the namespace uris was not defined in the XML schema when the UaModeler 1.1 was released.

To set the namespace uris correctly you can edit the settings file uamodeler.ini.
(For Windows 7 it is located at C:UsersUserNameAppDataRoamingunifiedautomationuamodeler)
You have to add

Code: Select all

UriOrder=2
to the section

Code: Select all

[XML-Schema]
and save the models.
Best regards
Unified Automation Support Team

sebastien_a
Sr. Member
Sr. Member
Posts: 12
Joined: 13 Apr 2012, 10:23

Re:XML file generated by the modeler

Post by sebastien_a »

Thanks for youre response, it works perfectly now.

Regards,

Sébastien

Post Reply