my dog learned polymorphism
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Importing a schema into an existing one Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Importing a schema into an existing one" Watch "Importing a schema into an existing one" New topic

Importing a schema into an existing one

Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1183
Good Day,

XML Schema import Element shows -

On the other hand, Ivan's study guide shows on page #32 -

So, it's not clear to me whether it's required to specify the schemaLocation in the import element. Actually, the w3schools page says that the four attributes (id, namespace, schemaLocation and any attributes) are optional.

Any thoughts?


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
I used the schemaLocation attribute in the example since this way I could validate an entire XML document that was supposed to adhere to the schema in Eclipse using the right-click document -> Validate option.
Best wishes!

My free books and tutorials:
I agree. Here's the link:
subject: Importing a schema into an existing one
jQuery in Action, 3rd edition