scdjws 1. xml schema
DESCRIPTION
It's cover the first chapter about the SCDJWS certification. Refers to: 1. SCDJWS 5.0 Study Guide by Mikalai Zaikin 2. SCDJWS 5 Study Notes by Ivan A KrizsanTRANSCRIPT
- 1.
- XML Schema
- Francesco Ierna
2.
- XML Document
3.
- XML Schema
- XML SCHEMA :
- A way of describing and constraining the content of XML documents.
Three parts:
-
- Datatypes
- 4. Contranints the XML Documents
5. What schema are and how one builds a schema
- Four main elements:
-
- Xsd:element : contains simple or complext type if no type is specified
- 6. Xsd:attribute( always simple type, no order req)
7. Xsd:complextType : descrive how elements that contains other elements are organized. Can extends and restrict
- Sequence : optional element
8. All :any order, maxOccurs 1 and MinOccurs 0, in all group 9. Choise : one of elements contained in the choise element to be present in the containing element Xsd:simpleType( derives from existing type, restricting): cannont t contains child elements or attributes
- Derives frome existing type
10. Rescrting existing type (xsd:rescriting)
-
-
-
- length ,minLength ,maxLength ,pattern ,enumeration ,whiteSpace ,maxInclusive ,maxExclusive ,minInclusive ,minExclusive ,totalDigits ,fractionDigits
-
-
11.
- Example.XSD
---------------> < order_request > < company_name >IBA JV < product_id >C-0YST < product_price >500.00 order_request > 12.
- Example XML
13.
- Include Redefine- Import
1."include" Component- This component brings all declarations and definitions of anexternal schema document into the current schema . The external schema document must have the same target namespace as the current schema. "include" components are usually used to build a new schema by extending existing schema documents. 2."redefine" Component- This component offers the same functions as the "include" component. But a "redefine" componentalso allows you redefine some datatypes provided in the included schema document . "redefine" components are usually used to revise a schema by redefining datatype definitions of existing schema documents. 3."import" Component- This component offers the same functions as the "include" component except that theincluded schema document has a different target namespace."import" components are usually used to build a new schema by borrowing element declarations from existing schema documents from other namespaces. 14.
- Import