Currently, many xml tool software can write xml documents according to the xsd file book ,. net does not implement this method. if I have written several methods for browsing, verifying, and creating xml, many xml tool software can write xml
Let's take a look at the simple xsd below:
AttributeFormDefault = "unqualified">
Comment describing your root
Element
Below is an xml format that complies with this xsd:
Xsi: noNamespaceSchemaLocation = "D: \
xsd mixed content xsd
With an indicator, we can control how elements are used in a document. Indicator
There are seven kinds of indicators: Order Indicator: all Choice Sequence occurrence indicator : maxOccurs minOccurs Group indicator: Group Nam
Open the vs command window,
Enter the command: XSD file. xml [/outputdir: Directory] [/parameters: file. xml]
Example:
Appendix 1: categories. xml
XML Version = " 1.0 " Encoding = " UTF-8 " ?> Categories > Category >
XML SchemaUsage
1. Define the elements in an XML document
2. Define the attributes in an XML document.
3. Define what kind of sub-nodes are available for a node, how many sub-nodes are available, and the sequence in which the sub-nodes appear
4.
Today, I don't know why I think of soap. Then I figured it out. In PHP, I used nusoap. For some basic usage, please read the manual.
The download of this software under the http://dietrich.ganx4.com/nusoap I will add the attachment.
I thought I
What is XML schema?
Like a DTD, XML schema defines and describes the structure and content pattern of an XML document. It defines the relationships between elements in an XML document and the Data Types of elements and attributes.
XML schema is
SimpleType detailed
The simpletype element function is to define a simple type that determines the constraints and related information of an element's attribute value.Restriction define a constraint conditionTest5.xsdelementFormDefault = "qualified"
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.