By Bhaumik , 28 January, 2020 Forums Gurux.DLMS Hi Mikko, I saved COSEM objects using GXDLMSObjectCollection.save. Now I am getting following XML. -------------------------------------------------------------- <?xml version="1.0" encoding="utf-8"?> <Objects> <GXDLMSAssociationLogicalName> <LN>0.0.40.0.0.255</LN> <Description>Invalid</Description> <ApplicationContextName> <JointIsoCtt>2</JointIsoCtt> <Country>16</Country> <CountryName>756</CountryName> <IdentifiedOrganization>5</IdentifiedOrganization> <DlmsUA>8</DlmsUA> <ApplicationContext>1</ApplicationContext> <ContextId>1</ContextId> </ApplicationContextName> <XDLMSContextInfo> <DlmsVersionNumber>6</DlmsVersionNumber> </XDLMSContextInfo> <AuthenticationMechanismName> <JointIsoCtt>2</JointIsoCtt> <Country>16</Country> <CountryName>756</CountryName> <IdentifiedOrganization>5</IdentifiedOrganization> <DlmsUA>8</DlmsUA> <AuthenticationMechanismName>2</AuthenticationMechanismName> </AuthenticationMechanismName> <SecuritySetupReference>0.0.0.0.0.0</SecuritySetupReference> </GXDLMSAssociationLogicalName> <GXDLMSAssociationLogicalName> <LN>0.0.40.0.1.255</LN> <Description>Invalid</Description> <ApplicationContextName> <JointIsoCtt>2</JointIsoCtt> <Country>16</Country> <CountryName>756</CountryName> <IdentifiedOrganization>5</IdentifiedOrganization> <DlmsUA>8</DlmsUA> <ApplicationContext>1</ApplicationContext> <ContextId>1</ContextId> </ApplicationContextName> <XDLMSContextInfo> <DlmsVersionNumber>6</DlmsVersionNumber> </XDLMSContextInfo> <AuthenticationMechanismName> <JointIsoCtt>2</JointIsoCtt> <Country>16</Country> <CountryName>756</CountryName> <IdentifiedOrganization>5</IdentifiedOrganization> <DlmsUA>8</DlmsUA> <AuthenticationMechanismName>2</AuthenticationMechanismName> </AuthenticationMechanismName> <SecuritySetupReference>0.0.0.0.0.0</SecuritySetupReference> </GXDLMSAssociationLogicalName> <GXDLMSData> <LN>0.0.42.0.0.255</LN> <Description>Invalid</Description> </GXDLMSData> <GXDLMSClock> <LN>0.0.1.0.0.255</LN> <Description>Invalid</Description> </GXDLMSClock> </Objects> -------------------------------------------------------------- The problem with this XML is, I am not able to deserialize it. Can you please suggest any solution so that I can deserialize the XML into GXDLMSObjectCollection? Hi, Hi, You can use the default java serializer to do this. We are using data structure like this because we need to use the same XML format for ANSI C++, Python, Java and C#. BR, Mikko
Hi, Hi, You can use the default java serializer to do this. We are using data structure like this because we need to use the same XML format for ANSI C++, Python, Java and C#. BR, Mikko
Hi,
Hi,
You can use the default java serializer to do this. We are using data structure like this because we need to use the same XML format for ANSI C++, Python, Java and C#.
BR,
Mikko