File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Author

Importing a schema into an existing one

Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1164
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?

Regards,
Dan

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
    
    1
Hi!
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: http://www.slideshare.net/krizsan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Importing a schema into an existing one
 
Similar Threads
Unable to refer global element
ws bb1.1: Explanation needed for examples
namespaces
Attributes of import element
Axis2 Issue, Please Help!