The schema that owns the complextype generates Java code

Source: Internet
Author: User

1. Create a complextype.xsd file under the D:/xml practice directory

<?xml version= "1.0" encoding= "UTF-8"? ><xs:schema xmlns:xs= "Http://www.w3.org/2001/XMLSchema"    xmlns: ts= "http://my.soa.complexType.com/complexTypexsd" targetnamespace= "http://my.soa.complexType.com/complexTypexsd "elementformdefault=" qualified "><xs:element name=" Catalog "><xs:complexType><xs:sequence> <xs:element  maxoccurs= "unbounded" ref= "Ts:book"/></XS:SEQUENCE></XS:COMPLEXTYPE></XS: Element><xs:element name= "book" ><xs:complextype><xs:sequence><xs:element name= "name" type = "Xs:string"/><xs:element name= "title" Type= "xs:string"/><xs:element name= "Price" type= "Xs:decimal"/ ></xs:sequence></xs:complexType></xs:element></xs:schema>    


2. Download the XJC tool, which can be downloaded at the following link:

http://download.csdn.net/detail/u013998070/8569667

3. Open the command line and adjust to the bin directory of the XJC Toolkit

If you do not know what you need to enter, you can simply enter the XJC command to view it, as follows

After you clear the relevant commands, enter the following instructions to generate the target Java code



The schema that owns the complextype generates Java code

Related Article

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.