SlideShare a Scribd company logo
XML Schema Definition
• What is XSD and its purpose?
• what is DTD and DTD Vs XSD.
• XSD Basics.
• Some Sample XSDs.
• Installation of Oracle SOA suite 11.1.1.3.
• Conclusion.
muraliksoa@gmailcom
What is XSD and its purpose?
• XML Schema Definition acts as the base in
generating and validating the XML documents.
• Purpose
• Structure of the xml elements
• Allowed elements
• Elements order
• Elements type
muraliksoa@gmailcom
what is DTD and DTD Vs XSD
• DTD stands for Document type definition
• It is also useful in validating xml documents.
• Sample DTD and XSD for Address xml documents.
DTD for Address XML
<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT address (street+, city, state, zip)>
<!ELEMENT street (#PCDATA) >
<!ELEMENT city (#PCDATA) >
<!ELEMENT state (#PCDATA) >
<!ELEMENT zip (#PCDATA) >
<!ATTLIST address category CDATA #REQUIRED >
muraliksoa@gmailcom
DTD vs XSD contd..
• XSD for Address XML
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:fc="http://www.friendzcorp.com/OracleSoabook"
targetNamespace="http://www.friendzcorp.com/OracleSoabook">
<element name="address" type="fc:Address" />
<complexType name="Address">
<sequence>
<element name="name" type="string" />
<element name="street" type="string" />
<element name="city" type="string" />
<element name="state" type="string" />
<element name="zip" type="string" />
</sequence>
</complexType>
</schema> muraliksoa@gmailcom
• Address instance based on address XSD
<?xml version="1.0" encoding="UTF-8"?>
<addr:address
xmlns:addr="http://www.friendzcorp.com/
OracleSoabook">
<name>Murali</name>
<street>1st street</street>
<city>Hyderabad</city>
<state>Andhra Pradesh</state>
<zip>500045</zip>
</addr:address>
muraliksoa@gmailcom
Data types
-Simple types(44 types are there)
Defined in http://www.w3.org/2001/XMLSchema
Ex: int - accepts numbers like 1234,8904.
boolean – accepts only true or false
float – accepts decimals like 23.45
string – accepts strings like “murali”
- User defined or complex types
Ex: Address, Purchase Order etc.,.
XSD basics contd..
muraliksoa@gmailcom
Nested complex types:
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:fc="http://www.friendzcorp.com/OracleSoabook"
targetNamespace="http://www.friendzcorp.com/OracleSoabook" >
<element name="purchaseOrder" type="fc:PurchaseOrder" />
<element name="address" type="fc:Address" />
<complexType name="PurchaseOrder">
<sequence>
<element name="accountName" type="string" />
<element name="accountNumber" type="unsignedShort" />
<element name="shipAddress" type="fc:Address" />
<element name="billAddress" type="fc:Address" />
<element name="book" type="fc:Book" />
<element name="total" type="float" />
</sequence>
</complexType>
<complexType name="Address">
<sequence>
<element name="name" type="string" />
<element name="street" type="string" />
<element name="city" type="string" />
<element name="state" type="string" />
<element name="zip" type="string" />
</sequence>
</complexType>
Sample XSDs
muraliksoa@gmailcom
Sample XSDs Contd..
Usage of Occurrence constraints:
<complexType name="Address">
<sequence>
<element name="name" type="string" />
<element name="street" type="string"
minOccurs="1" maxOccurs="2" />
<element name="city" type="string" />
<element name="state" type="string" />
<element name="zip" type="string" />
</sequence>
</complexType> muraliksoa@gmailcom
Oracle SOA 11.1.1.3 Installation
muraliksoa@gmailcom
1. Database installation
2. RCU( Repository creation utility)
For creating schemas for Products like OWSM, SOA infra,
webcenter etc.
3. Middleware home creation.
This the place where Jdevelper and weblogic server will
be installed.
4. SOA suite Installaion
11.1.1.2 installation and upgrading to 11.1.1.3.
Here installation of BPEL PM, Mediator , B2B, business rules, Human
work flow etc., will takes place.
5. Domain creation.
6. Server connection establishment for deploying
application to server.
Conclusion
• What we have seen?
– What is XSD?
– Some sample XSDs
– Oracle SOA 11.1.1.3 Installation.
muraliksoa@gmailcom
?
muraliksoa@gmailcom
muraliksoa@gmailcom

More Related Content

PDF
Eyes and Ears Vol. 2
PDF
XSD Incomplete Overview Draft
PPTX
Service Oriented Architecture-Unit-1-XML Schema
PDF
Schemas and soap_prt
PPT
Xml schema
PPT
Xml schema
PPT
Xml schema
PPT
Xml schema
Eyes and Ears Vol. 2
XSD Incomplete Overview Draft
Service Oriented Architecture-Unit-1-XML Schema
Schemas and soap_prt
Xml schema
Xml schema
Xml schema
Xml schema

Similar to Xsd basics (20)

PPT
Xml schema
PPT
Xml schema
PPT
Xml schema
PDF
Spring Web Service, Spring Integration and Spring Batch
PPT
Standards / XML / Validation / Transformation / ESRI
PPT
XMLLec1.pptsfsfsafasfasdfasfdsadfdsfdf dfdsfds
PPT
XMLLec1 (1xML lecturefsfsdfsdfdsfdsfsdfsdfdsf
PPT
XML stands for EXtensible Markup Language
PPT
Relational data as_xml
PPT
PPTX
XML Schema
PPT
XML - EXtensible Markup Language
PPTX
PPTX
[PASS Summit 2016] Azure DocumentDB: A Deep Dive into Advanced Features
PPTX
Web Service Workshop - 3 days
PPTX
Xml and databases
PPTX
OData: Universal Data Solvent or Clunky Enterprise Goo? (GlueCon 2015)
PPTX
BizTalk Server Teach me something new about Flat Files (or not)
PPT
Attacks against Microsoft network web clients
PDF
Global Scale ESB with Mule
Xml schema
Xml schema
Xml schema
Spring Web Service, Spring Integration and Spring Batch
Standards / XML / Validation / Transformation / ESRI
XMLLec1.pptsfsfsafasfasdfasfdsadfdsfdf dfdsfds
XMLLec1 (1xML lecturefsfsdfsdfdsfdsfsdfsdfdsf
XML stands for EXtensible Markup Language
Relational data as_xml
XML Schema
XML - EXtensible Markup Language
[PASS Summit 2016] Azure DocumentDB: A Deep Dive into Advanced Features
Web Service Workshop - 3 days
Xml and databases
OData: Universal Data Solvent or Clunky Enterprise Goo? (GlueCon 2015)
BizTalk Server Teach me something new about Flat Files (or not)
Attacks against Microsoft network web clients
Global Scale ESB with Mule
Ad

More from xavier john (20)

PPT
Unix day4 v1.3
PPT
Unix day3 v1.3
PPT
Unix day2 v1.3
TXT
Interview questions
DOCX
Xavier async callback_fault
DOCX
Custom faultpolicies
DOCX
All adapterscommonproperties
DOCX
Custom faultpolicies
DOCX
Oracle business rules
DOCX
Soap.doc
DOCX
Soa installation
PPT
DOCX
Webservices
DOCX
While.doc
DOCX
Xml material
DOC
DOC
X query
DOC
DOC
DOCX
All adapterscommonproperties
Unix day4 v1.3
Unix day3 v1.3
Unix day2 v1.3
Interview questions
Xavier async callback_fault
Custom faultpolicies
All adapterscommonproperties
Custom faultpolicies
Oracle business rules
Soap.doc
Soa installation
Webservices
While.doc
Xml material
X query
All adapterscommonproperties
Ad

Recently uploaded (20)

PDF
Understanding Forklifts - TECH EHS Solution
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
history of c programming in notes for students .pptx
PPTX
L1 - Introduction to python Backend.pptx
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Nekopoi APK 2025 free lastest update
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Digital Systems & Binary Numbers (comprehensive )
PDF
top salesforce developer skills in 2025.pdf
PDF
System and Network Administration Chapter 2
PPTX
assetexplorer- product-overview - presentation
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
medical staffing services at VALiNTRY
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Understanding Forklifts - TECH EHS Solution
Upgrade and Innovation Strategies for SAP ERP Customers
Operating system designcfffgfgggggggvggggggggg
history of c programming in notes for students .pptx
L1 - Introduction to python Backend.pptx
Design an Analysis of Algorithms I-SECS-1021-03
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Nekopoi APK 2025 free lastest update
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Design an Analysis of Algorithms II-SECS-1021-03
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Wondershare Filmora 15 Crack With Activation Key [2025
Digital Systems & Binary Numbers (comprehensive )
top salesforce developer skills in 2025.pdf
System and Network Administration Chapter 2
assetexplorer- product-overview - presentation
Navsoft: AI-Powered Business Solutions & Custom Software Development
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
medical staffing services at VALiNTRY
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf

Xsd basics

  • 1. XML Schema Definition • What is XSD and its purpose? • what is DTD and DTD Vs XSD. • XSD Basics. • Some Sample XSDs. • Installation of Oracle SOA suite 11.1.1.3. • Conclusion. muraliksoa@gmailcom
  • 2. What is XSD and its purpose? • XML Schema Definition acts as the base in generating and validating the XML documents. • Purpose • Structure of the xml elements • Allowed elements • Elements order • Elements type muraliksoa@gmailcom
  • 3. what is DTD and DTD Vs XSD • DTD stands for Document type definition • It is also useful in validating xml documents. • Sample DTD and XSD for Address xml documents. DTD for Address XML <?xml version="1.0" encoding="UTF-8"?> <!ELEMENT address (street+, city, state, zip)> <!ELEMENT street (#PCDATA) > <!ELEMENT city (#PCDATA) > <!ELEMENT state (#PCDATA) > <!ELEMENT zip (#PCDATA) > <!ATTLIST address category CDATA #REQUIRED > muraliksoa@gmailcom
  • 4. DTD vs XSD contd.. • XSD for Address XML <?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:fc="http://www.friendzcorp.com/OracleSoabook" targetNamespace="http://www.friendzcorp.com/OracleSoabook"> <element name="address" type="fc:Address" /> <complexType name="Address"> <sequence> <element name="name" type="string" /> <element name="street" type="string" /> <element name="city" type="string" /> <element name="state" type="string" /> <element name="zip" type="string" /> </sequence> </complexType> </schema> muraliksoa@gmailcom
  • 5. • Address instance based on address XSD <?xml version="1.0" encoding="UTF-8"?> <addr:address xmlns:addr="http://www.friendzcorp.com/ OracleSoabook"> <name>Murali</name> <street>1st street</street> <city>Hyderabad</city> <state>Andhra Pradesh</state> <zip>500045</zip> </addr:address> muraliksoa@gmailcom
  • 6. Data types -Simple types(44 types are there) Defined in http://www.w3.org/2001/XMLSchema Ex: int - accepts numbers like 1234,8904. boolean – accepts only true or false float – accepts decimals like 23.45 string – accepts strings like “murali” - User defined or complex types Ex: Address, Purchase Order etc.,. XSD basics contd.. muraliksoa@gmailcom
  • 7. Nested complex types: <?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:fc="http://www.friendzcorp.com/OracleSoabook" targetNamespace="http://www.friendzcorp.com/OracleSoabook" > <element name="purchaseOrder" type="fc:PurchaseOrder" /> <element name="address" type="fc:Address" /> <complexType name="PurchaseOrder"> <sequence> <element name="accountName" type="string" /> <element name="accountNumber" type="unsignedShort" /> <element name="shipAddress" type="fc:Address" /> <element name="billAddress" type="fc:Address" /> <element name="book" type="fc:Book" /> <element name="total" type="float" /> </sequence> </complexType> <complexType name="Address"> <sequence> <element name="name" type="string" /> <element name="street" type="string" /> <element name="city" type="string" /> <element name="state" type="string" /> <element name="zip" type="string" /> </sequence> </complexType> Sample XSDs muraliksoa@gmailcom
  • 8. Sample XSDs Contd.. Usage of Occurrence constraints: <complexType name="Address"> <sequence> <element name="name" type="string" /> <element name="street" type="string" minOccurs="1" maxOccurs="2" /> <element name="city" type="string" /> <element name="state" type="string" /> <element name="zip" type="string" /> </sequence> </complexType> muraliksoa@gmailcom
  • 9. Oracle SOA 11.1.1.3 Installation muraliksoa@gmailcom 1. Database installation 2. RCU( Repository creation utility) For creating schemas for Products like OWSM, SOA infra, webcenter etc. 3. Middleware home creation. This the place where Jdevelper and weblogic server will be installed. 4. SOA suite Installaion 11.1.1.2 installation and upgrading to 11.1.1.3. Here installation of BPEL PM, Mediator , B2B, business rules, Human work flow etc., will takes place. 5. Domain creation. 6. Server connection establishment for deploying application to server.
  • 10. Conclusion • What we have seen? – What is XSD? – Some sample XSDs – Oracle SOA 11.1.1.3 Installation. muraliksoa@gmailcom