A brief introduction to the elementFormDefault attribute in XML Schema

怪我咯
Release: 2017-04-05 17:03:24
Original
1559 people have browsed it

The following editor will bring you a brief discussionXMLThe elementFormDefault attribute in Schema. The editor thinks it’s pretty good, so I’ll share it with you now and give it as a reference. Let’s follow the editor to take a look.

elementFormDefault attribute is related tonamespace, its value can be set to qualified or unqualified

If set to qualified:

When using local elements in XML documents, you must use a qualified short name as a prefix

##sean.xsd:

         
Copy after login

sean.xml:

  test 
Copy after login

If set to unqualified:

When using local elements in XML documents, the qualified short can be omitted Name

sean.xsd:

         
Copy after login

sean.xml:

  test 
Copy after login

Although there will be a lot of indirection, it is not easy to understand because the namespace is removed.

Similar attributes include attributeFormDefault, whose rules are the same as elementFormDefault



The above is the detailed content of A brief introduction to the elementFormDefault attribute in XML Schema. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
xml
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!