Write the XML document in quadruplicate

Source: Internet
Author: User
C. thinking: which xsd file does the namespace correspond? Use the schemaLocation keyword to associate the ing between the namespace and xsd. the Schema constraint document itself is an XML document with the extension xsd


Difficulty: how to write the root element of the XML document? Step 4: a. First, read the Schema document and find the root element.
 
 <书架>
B. thinking: which namespace does the bookshelf come from? Read the Schema document. targetNamespace is the namespace.

Use the xmlns keyword (xmlns namespace declaration) to declare the namespace from which my element comes from (xmlns: xml namespace)

 
 

C. thinking: which xsd file does the namespace correspond? Use the schemaLocation keyword to associate the correspondence between the namespace and xsd
 
 


The remaining tasks are automatically generated by eclipse.

The example is as follows:

The Schema constraints are known as follows and the corresponding xml document is written.


  
 
  
   
    
     
      
       
        
        
        
       
      
     
    
   
  
 


The xml document is as follows:



 
 
  
   
    
JavaScript Web development
   
   
    
Zhang Xiaoxiang
   
   
    
28
   
  
 


Final version: created in seconds.

You can directly create it using the Myeclipse tool.

The above section describes how to write XML documents based on the Schema. For more information, see The PHP Chinese website (www.php1.cn )!

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.