
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to import xsd with several imports
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
When I am trying to export, I am getting the following error.
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 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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"/>

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I will try to construct one in a non confidential site and I will post it here. Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 🙂
