XSD include and import

Source: Internet
Author: User

To learn about XML/XSD, w3cschool is a good place, especially just getting started.

Back to include and import issues. http://www.w3schools.com/Schema/schema_elements_ref.asp

  • Import can introduce different schemas of targetnamespace into a file.
  • Include can introduce the same schema of targetnamespace into a file.

Therefore, you must pay attention to your targetnamespace. It is best to determine at the beginning that you want to use that method to introduce and load other schemas.

========================================================== ============================

Digress:

Castor is used in our project to generate Java based on XSDCode.

Castor supports import and include.

We only tested include. If the include schema in XSD has different targetnamespace, Castor will prompt you and cannot generate code.

It's too late today. I will try again later.

Here is a good article about Castor and import.Article.

Http://docs.codehaus.org/display/CASTOR/Multiple+namespaces+for+the+source+generator

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.