.


:




:

































 

 

 

 


XML-. XML Schema Definition (XSD).




XML-.

XML- ( ).

XML- :

1. , ;

2. , , XML-.

XML-. .

, Document Type Definitions (DTD), XML Schema, RELAX NG, XML Data-Reduced . DTD XML Schema.

. , .

XML Schema Definition (XSD).

XML Schema Definition (XSD) XML , DTD. , , .

XML Schema XML-, , , , , . , XML Schema XML- , ( PSV1).

XML Schema . , . : , , , (, ). , , . .

XML Schema, XSD, .

XML Schema , xsd. XML schemaLocation . schemaLocation, . XML.

XML Schema.

<schema>. <schema> . 2.10.

<schema> :

1. <element> XML-;

2. <attribute> XML-;

3. <group> , ;

4. <attributeGroup> ;

5. <annotation> XML- ;

6. <import> ( );

7. <include> ( );

8. <notation> , -XML- XML-;

9. <redefine> , , ;

10. <simpleType> . ;

11. <complexType> , .

XML Schema :

1. , . String, Float, Double, Time, Date, Decimal, AnyURI;

2. , . Integer, Long, Byte, Short, nonPositivelnteger, nonNegativelnteger, ID .;

3. , . -.

, ( ) , XML Schema .

fixed default / .

, <sympleType>, .

:

1. (restriction) ;

2. (union) ;

3. (list) .

, ( String ):

 

, ( ):

( shoeSizes , 10.5, 9, 8 11):

XML Schema (. . 2.8):

1. ( );

2. ( );

3. ( );

4. ;

5. ;

6. .

. 2.11.

 

, , ( ).

, - , .

, ( ).

, string: 1 2.

XML-, , , <complexType>.

( , . . 2.11), ( minOccurs maxOccurs).

minOccurs , . minOccurs, , () .

maxOccurs , . . maxOccurs unbounded ( ).

, , , , . <sequence> (. 2.12), maxOccurs .

choice , , , .


 





:


: 2016-12-28; !; : 1548 |


:

:

, .
==> ...

1700 - | 1516 -


© 2015-2024 lektsii.org - -

: 0.021 .