Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Resolving schema import "http://www.w3.org/2000/09/xmldsig"
Resolving schema import "http://www.w3.org/2000/09/xmldsig" [message #754113] Mon, 31 October 2011 20:19 Go to next message
clam is currently offline clamFriend
Messages: 3
Registered: July 2009
Junior Member
Hi,

I have a schema that contains the import statement <import namespace="h t t p://www.w3.org/2000/09/xmldsig"/>. I am trying to load such schema, as well as all other schemas that this schema imports (sorry I have to put spaces in the namespace because it does not let me put a link unless I have posted more than 5 messages). The actual schema is attached in this message.

Two issues happen when my code encounters the import for h t t p://www.w3.org/2000/09/xmldsig:

1. It takes a long time to execute the line XSDImportImpl.importSchema() as shown below.
2. Finally importSchema() returns an importedSchema with null targetNamespace.

XSDImport imported = (XSDImport)schemaContent;
String location = imported.getSchemaLocation();
XSDSchema importedSchema = ((XSDImportImpl)imported).importSchema();

I open another schema that contains the same import in Eclipse's XSD editor. When I right click on the import to open it in a new editor, Eclipse seems to hang forever.

index.php/fa/6004/0/

Is this as expected or I am doing something that I'm not supposed to do?

Thanks,
Connie

[Updated on: Mon, 31 October 2011 20:21]

Report message to a moderator

Re: Resolving schema import &quot;http://www.w3.org/2000/09/xmldsig&quot; [message #754123 is a reply to message #754113] Mon, 31 October 2011 22:54 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
If I enter this URI in the browser, it hangs for a long time too and it
never does seem to return a schema. It would be better to specify a
schema location for this. One where a schema can be quickly found.

On 31/10/2011 9:19 PM, clam wrote:
> Hi,
>
> I have a schema that contains the import statement<import namespace="h t t p://www.w3.org/2000/09/xmldsig"/>. I am trying to load such schema, as well as all other schemas that this schema imports (sorry I have to put space in the namespace because it does not let me put a link unless I have posted more than 5 messages).
>
> Two issues happen when my code encounters the import for h t t p://www.w3.org/2000/09/xmldsig:
>
> 1. It takes a long time to execute the line XSDImportImpl.importSchema() as shown below.
> 2. Finally importSchema() returns an importedSchema with null targetNamespace.
>
> XSDImport imported = (XSDImport)schemaContent;
> String location = imported.getSchemaLocation();
> XSDSchema importedSchema = ((XSDImportImpl)imported).importSchema();
>
> I open another schema that contains the same import in Eclipse's XSD editor. When I right click on the import to open it in a new editor, Eclipse seems to hang forever.
>
>
>
> Is this as expected or I am doing something that I'm not supposed to do?
>
> Thanks,
> Connie


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Resolving schema import &quot;http://www.w3.org/2000/09/xmldsig&quot; [message #754478 is a reply to message #754123] Wed, 02 November 2011 16:59 Go to previous message
clam is currently offline clamFriend
Messages: 3
Registered: July 2009
Junior Member
Thanks Ed! That makes sense.
Previous Topic:XML Validation against DTD
Next Topic:Serialize XSD Object
Goto Forum:
  


Current Time: Thu Apr 18 08:18:39 GMT 2024

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

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

Back to the top