Desktop version

Main > Forum > 1C:Enterprise Platform > Bugs and functionality requests to 1C:Enterprise platform > XML deserialization

Forum

Search UsersRules
XML deserialization
#1
Active user
Points:: 0
Joined:: Mar 20, 2012

Hello.

We have to store some catalogs, charts of accounts, charts of calculation types in text templates in XML format, because in predefined values we can only store code and description, but we need more attributes and tabular sections.

And now i found out that when we delete all lines from tabular section in XML then after loading this XML to information base old lines still exist in tabular section.

I tested this on Chart of calculation types in 8.3.3.721 and 8.2.19.68.

The code for reading XML is quite simple:

Code
Object = XDTOSerializer.ReadXML(XMLR)

Profile
#2
Just came
Points:: 0
Joined:: Oct 30, 2013

Maybe it happens because XDTOSerializer work with XDTOfactory, which contains XDTOpackage with your xml file schema, and it take tabular sections from this schema?

Profile
#3
Active user
Points:: 0
Joined:: Mar 20, 2012

I use the global XDTOSerializer object to serialize and deserialize in one configuration without using any reference to XDTO Packages.

It seems that it takes the tabular section from database.

I don't understand how could the tabular section of deserialized object contain any data which doesn't exist in XML?

Maybe I explained the problem not very good.

For example, i have an XML with serialized ChartOfCalculationTypesObject without data in tabular section. Then I deserialize it and write to database. Now I have the chart of calculation types object in database without records in tabular section. Then i manualy add one line in database. Then  I deserialize original XML one more time and write it to database. Now I have the chart of calculation types object in database with one record in tabular section.

With catalog is the same thing

Profile
#4
Guest
Points::
Joined::

Could you provide a configuration and XML files with serialized objects?

Profile
#5
Active user
Points:: 0
Joined:: Mar 20, 2012

I made a test configuration with one catalog and XML file inside it as a template.

Profile
#6
Guest
Points::
Joined::

Thank you for the information. I sent it to our developers.

Profile
#7
Guest
Points::
Joined::

Hello, Mikhail.

This problem is found even in 8.1 version and can not be a problem with migration to 8.3. It will be fixed in future versions, of course.

Profile
#8
Interested
Points:: 15
Joined:: Oct 27, 2011

You should definitely hire us as beta testers.  :)

Profile
#9
Active user
Points:: 0
Joined:: Mar 20, 2012

In 8.3.4.365 issue still exists

Profile
#10
Active user
Points:: 0
Joined:: Mar 20, 2012

Hello. This problem still exists. (I tried on 8.3.4.482)

Profile
#11
Guest
Points::
Joined::

Hello!

I'm sorry, but this issue is still in progress. Thank you for keeping your eye on it.

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.