Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Calling XSD with different namespaces(Calling XSD with different namespaces)
Calling XSD with different namespaces [message #1007777] Thu, 07 February 2013 13:35 Go to next message
veguru Dinesh is currently offline veguru Dinesh
Messages: 2
Registered: February 2013
Junior Member
Hi experts,

I have two xsd files with different namespaces,lets say XSD1 and XSD2.

XSD 2 is called in XSD1 and i import(in to SAP) both the xsd's.

Ideal case is when i open xsd 1 the data existing in xsd2 also should be available in xsd1, unfortunatly it does not happen.

Can some one through some light on this....

Thanks a lot in advance....
Re: Calling XSD with different namespaces [message #1007971 is a reply to message #1007777] Thu, 07 February 2013 15:58 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26089
Registered: July 2009
Senior Member
Comments below.

On 07/02/2013 2:57 PM, veguru Dinesh wrote:
> Hi experts,
>
> I have two xsd files with different namespaces,lets say XSD1 and XSD2.
>
> XSD 2 is called in XSD1
Called? What does that mean.
> and i import(in to SAP) both the xsd's.
I don't know what import into SAP means?
>
> Ideal case is when i open xsd 1 the data existing in xsd2 also should
> be available in xsd1, unfortunatly it does not happen.
What does happen?
>
> Can some one through some light on this....
Not without concrete examples of what the xsd:import statements look like.
>
> Thanks a lot in advance....
Re: Calling XSD with different namespaces [message #1008225 is a reply to message #1007971] Mon, 11 February 2013 15:13 Go to previous messageGo to next message
veguru Dinesh is currently offline veguru Dinesh
Messages: 2
Registered: February 2013
Junior Member
Hi ED,

I have XSD1 and few data in xsd1 is picked up from xsd2.When i import both the xsd's in to SAP ideally i should get whole data(XSD1 and XSD2 data in XSD1).
But when i import it in to SAP, i can only find xsd1 data,xsd2 data is not getting included in to XSD1.

Attached document of xsd1 and xsd2 (only part wiht name space is provided).
  • Attachment: XSD1.doc
    (Size: 30.00KB, Downloaded 106 times)
Re: Calling XSD with different namespaces [message #1008347 is a reply to message #1008225] Tue, 12 February 2013 05:52 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26089
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
If there is something important about "SAP" you're best to ask on an
SAP specific forum.&nbsp; This isn't a general for for getting help about
XML Schema, it's a forum for asking about how to use Eclipse's XSD
API.&nbsp; Given this import's schema location<br>
<br>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<span style="font-size:10.0pt;font-family:
&quot;Arial&quot;,&quot;sans-serif&quot;;mso-fareast-font-family:&quot;Times
New Roman&quot;;color:red;
background:white;mso-highlight:white;mso-ansi-language:DE;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA" lang="DE">schemaLocation</span><span
style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;mso-fareast-font-family:
&quot;Times
New
Roman&quot;;color:blue;background:white;mso-highlight:white;mso-ansi-language:DE;mso-fareast-language:EN-US;mso-bidi-language:AR-SA"
lang="DE">="</span><span
style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;mso-fareast-font-family:
&quot;Times
New
Roman&quot;;color:black;background:white;mso-highlight:white;mso-ansi-language:DE;mso-fareast-language:EN-US;mso-bidi-language:AR-SA"
lang="DE">SyncItemMaster_1.2_PSF_openapplications.org_oagis.xsd</span><span
style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;mso-fareast-font-family:
&quot;Times
New
Roman&quot;;color:blue;background:white;mso-highlight:white;mso-ansi-language:DE;mso-fareast-language:EN-US;mso-bidi-language:AR-SA"
lang="DE">"<br>
<br>
</span>I would expect that the two schemas will need to reside in
the same folder in your workspace or file system. Is that the case?&nbsp;
I.e., the relative path you specify here must resolve correctly to
locate the referenced schema and in this case, the form you show
implies they must be in the same folder.<br>
<br>
<br>
<div class="moz-cite-prefix">On 11/02/2013 4:13 PM, veguru Dinesh
wrote:<br>
</div>
<blockquote cite="mid:kfb1qp$oub$1@xxxxxxxxe.org" type="cite">
<pre wrap="">Hi ED,

I have XSD1 and few data in xsd1 is picked up from xsd2.When i import both the xsd's in to SAP ideally i should get whole data(XSD1 and XSD2 data in XSD1).
But when i import it in to SAP, i can only find xsd1 data,xsd2 data is not getting included in to XSD1.

Attached document of xsd1 and xsd2 (only part wiht name space is provided).
</pre>
</blockquote>
<br>
</body>
</html>
Re: Calling XSD with different namespaces [message #1053242 is a reply to message #1007777] Fri, 03 May 2013 11:12 Go to previous message
pradeep Amisagadda is currently offline pradeep Amisagadda
Messages: 1
Registered: May 2013
Junior Member
HI Dinesh,

you have to refer your second XSD in first xsd.

In First XSD: In your external definions, go to External references tab.
Copy the contents of the column SOURCE.

In Second XSD: Now, in your Second xsd, in the SOURCE, put the value copied.
Save and active.

Regards,
pradeep A.
Previous Topic:How to find XML structures directly from the XSD
Next Topic:Eclipse wsdl validator doesn't show exact error
Goto Forum:
  


Current Time: Thu Oct 02 08:27:18 GMT 2014

Powered by FUDForum. Page generated in 0.06587 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software