Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
spr654
Creator

How to import xsd with several imports

Hi, I am using Open Studio 7.1 and I am trying to import an xsd as xml metadata but it looks impossible because it has xsd:imports. The example file is in attachment. Any help is welcome!
Labels (2)
1 Solution

Accepted Solutions
spr654
Creator
Author

Hi,

 

Finally I found the way to get the metadata. In schema location, we can see a path like "../../../". After thinking a bit, I asked around if somebody had something like a folder structure containing the imported xsd following that tree and bingo. I have imported the folder in the workspace, inside the project folder. Then, i have used the xml metadata to create an input xml and the xml could finally read all the xsd:import. It is the first time I see something like this, but it worked. Now I have other issues, but I will open new posts to discuss them.

Thank you both for your help and your support.

View solution in original post

6 Replies
Anonymous
Not applicable

Hi,

 

   When I am trying to export, I am getting the following error.

 

0683p000009M3BK.png

 

Could you please check whether all the paths are correct and then try to import again?

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

vapukov
Master II

Hi,

 

in first row of XSD it contains some definitions:

xmlns:ns0="http://thesite.com/BusinessObjects/Common/IsAliveResultType/V2" 
xmlns:ns1="http://thesite.com/BusinessObjects/ABC/ReplicationMessageType/V2"
xmlns:ns2="http://thesite.com/BusinessObjects/Core/VoidType/V2"
xmlns:ns3="http://thesite.com/BusinessObjects/ABC/ServiceFaultType/V2"

domain - http://thesite.com is not working,

path is also wrong (at least for us):

  <xsd:import namespace="http://thesite.com/BusinessObjects/Common/IsAliveResultType/V2" schemaLocation="../../../../BusinessObjects/Common/IsAliveResultType/IsAliveResultType.xsd"/>
  <xsd:import namespace="http://thesite.com/BusinessObjects/ABC/ReplicationMessageType/V2" schemaLocation="../../../../BusinessObjects/ABC/ReplicationMessageType/ReplicationMessageType.xsd"/>
  <xsd:import namespace="http://thesite.com/BusinessObjects/Core/VoidType/V2" schemaLocation="../../../../BusinessObjects/Core/VoidType/VoidType.xsd"/>
  <xsd:import namespace="http://thesite.com/BusinessObjects/ABC/ServiceFaultType/V2" schemaLocation="../../../../BusinessObjects/ABC/ServiceFaultType/ServiceFaultType.xsd"/>

 

and definitions could not be loaded for resolve feature parts of XSD

  <xsd:element name="receiveDataChangeEventsReqMsg" type="ns1:ReplicationMessageType"/>
  <xsd:element name="receiveDataChangeEventsRespMsg" type="ns2:VoidType"/>
  <xsd:element name="isAliveReqMsg" type="ns2:VoidType"/>
  <xsd:element name="isAliveRespMsg" type="ns0:IsAliveResultType"/>
  <xsd:element name="serviceFault" type="ns3:ServiceFaultType"/>

 

spr654
Creator
Author

Hi Nikhil,

Yes, the xsd is an anonymized because I can’t put the real one. When I try to import the real one, it asks me for the root node. I didn’t even get as far as you did. I only got a long line with xmlns path on it...I will try to construct one fake with a working url...
spr654
Creator
Author

Hi Vapukov, yes it was in example.
I will try to construct one in a non confidential site and I will post it here. Thanks
spr654
Creator
Author

Hi,

 

Finally I found the way to get the metadata. In schema location, we can see a path like "../../../". After thinking a bit, I asked around if somebody had something like a folder structure containing the imported xsd following that tree and bingo. I have imported the folder in the workspace, inside the project folder. Then, i have used the xml metadata to create an input xml and the xml could finally read all the xsd:import. It is the first time I see something like this, but it worked. Now I have other issues, but I will open new posts to discuss them.

Thank you both for your help and your support.

Anonymous
Not applicable

Perfect!

 

Could you please close this topic now so that other Talend community members can refer it in future?

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂