Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Integration > I want to create .xsd file from .xml file and create xdto object from that .xsd file

Forum

Search UsersRules
I want to create .xsd file from .xml file and create xdto object from that .xsd file
#1
Active user
Points:: 0
Joined:: Jul 28, 2015

Hi guys, how are you?

I have a problem Could you help me please?

I'm new on ERP and 1C:Enterprise.

I have to learn how I convert xml file to xsd file and how to create xdto object from this xsd file.

I searched and I tried but I have an error. I am starting tell you with screenshots.

I opened a xml file with visual studio (see 1.jpg).

after that I convert to xsd with create schema in XML section (see 2.jpg).

and I opened 1C:Enterprise my training configuration, right click XDTO packages (see 3.jpg).

and I choose my xsd file (see 4.jpg).

and I got this error messages (see 5.jpg).

I use Turkish but I want to translate this error messages to English.

XSD schema tranfer finished.
A partial of schema can't transfer. possible reasons;
-the file doesn't contain description of XSD schema
-the schema which is transfered isn't contain target name space(targetNameSpace).

Could you help me please? :)

Thank you

Profile
#2
Guest
Points::
Joined::

Hello, Mehmet Tuğrul SARIÇİÇEK.

Would you please attach your XSD schema file to your message, so I could check what is the problem with that file?

It might contain not supported attributes for example.

Profile
#3
Active user
Points:: 0
Joined:: Jul 28, 2015

Timofey Bugaevsky,
Thank you for interest sir,

forum didn't support xsd file type and I uploaded txt type content of my xsd type.

Best Regards

Profile
#4
Guest
Points::
Joined::

Mehmet Tuğrul SARIÇİÇEK,

The error message included the line saying, that there might not be the targetNambespace attribute, so I added it to your file root tag and it imported successfully:

Code
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xsl="http://v8.1c.ru/8.1/data-composition-system/settings" 
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
            attributeFormDefault="unqualified" elementFormDefault="qualified" 
            xmlns:xs="http://www.w3.org/2001/XMLSchema" 
            targetNamespace="http://www.example.com">
...

Profile
#5
Active user
Points:: 0
Joined:: Jul 28, 2015

Timofey Bugaevsky,

Thank you sir, I'm appreciate because of your interest.

Best Regards

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.