Home  >  Article  >  Backend Development  >  A brief introduction to the elementFormDefault attribute in XML Schema

A brief introduction to the elementFormDefault attribute in XML Schema

怪我咯
怪我咯Original
2017-04-05 17:03:241505browse

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 to namespace, 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:



 
 
 
 
 
 
 

sean.xml:



 test

If set to unqualified:

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

sean.xsd:



 
 
 
 
 
 
 

sean.xml:



 test

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!

Statement:
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