XML file and XSD file relationships

Source: Internet
Author: User

 XML file and XSD file relationships2010-09-29 15:38 2307 People read Comments (0) favorite reports Xml

1. The XSD file defines the element and type in a namespace. The type defined here is used by element (this namespace or other namespace) and the XML file is not used.

2. The XML file has a unique root element.

3. When creating XML, you can specify which namespace to use in the root element, thereby using the element in it.

Discussion: root element is also part of a namespace, because the other element is the child element of this root element, then it is not only necessary to

Specify the namespace that uses root element? This depends on the definition of the type of root element.

If you refer to the element or type of another namespace in the definition of the type of the root element (as well as the element in the type definition), then you need to introduce additional namespace

In summary, XML files and XSD files are not directly related to each other through namespace associations, i.e.

add element use Element

XSD file-------------------------->namepsae--------------------------->xml file

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

XML file and XSD file relationships

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.