I want to create .xsd file from .xml file and create xdto object from that .xsd file

1C:Enterprise platform integration capabilities and techniques

#1
People who like this:0Yes/0No
Active user
Rating: 7
Joined: Jul 28, 2015
Company:

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

Download 1.jpg (91.96 KB)
Download 2.jpg (101.24 KB)
Download 3.jpg (136.42 KB)
Download 4.jpg (157.6 KB)
Download 5.jpg (19.35 KB)
Edited: Mehmet Tuğrul SARIÇİÇEK - Aug 17, 2015 08:08 AM
 
#2
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

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.

 
#3
People who like this:0Yes/0No
Active user
Rating: 7
Joined: Jul 28, 2015
Company:

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

 
#4
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

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">
...

 
#5
People who like this:0Yes/0No
Active user
Rating: 7
Joined: Jul 28, 2015
Company:

Timofey Bugaevsky,

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

Best Regards

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.