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