SlideShare uma empresa Scribd logo
1 de 12
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

Mais conteúdo relacionado

Semelhante a Xsd basics

Xml and databases
Xml and databasesXml and databases
Xml and databases
Raghu nath
 
BizTalk Server Teach me something new about Flat Files (or not)
BizTalk Server Teach me something new about Flat Files (or not)BizTalk Server Teach me something new about Flat Files (or not)
BizTalk Server Teach me something new about Flat Files (or not)
BizTalk360
 
Attacks against Microsoft network web clients
Attacks against Microsoft network web clients Attacks against Microsoft network web clients
Attacks against Microsoft network web clients
Positive Hack Days
 
02 a xml_foundations
02 a xml_foundations02 a xml_foundations
02 a xml_foundations
Salma Zaki
 

Semelhante a Xsd basics (20)

Xml schema
Xml schemaXml schema
Xml schema
 
Xml schema
Xml schemaXml schema
Xml schema
 
Xml schema
Xml schemaXml schema
Xml schema
 
Spring Web Service, Spring Integration and Spring Batch
Spring Web Service, Spring Integration and Spring BatchSpring Web Service, Spring Integration and Spring Batch
Spring Web Service, Spring Integration and Spring Batch
 
Standards / XML / Validation / Transformation / ESRI
Standards / XML / Validation / Transformation / ESRIStandards / XML / Validation / Transformation / ESRI
Standards / XML / Validation / Transformation / ESRI
 
Relational data as_xml
Relational data as_xmlRelational data as_xml
Relational data as_xml
 
Wsdl
WsdlWsdl
Wsdl
 
XML Schema
XML SchemaXML Schema
XML Schema
 
XML - EXtensible Markup Language
XML - EXtensible Markup LanguageXML - EXtensible Markup Language
XML - EXtensible Markup Language
 
Xml 2
Xml  2 Xml  2
Xml 2
 
[PASS Summit 2016] Azure DocumentDB: A Deep Dive into Advanced Features
[PASS Summit 2016] Azure DocumentDB: A Deep Dive into Advanced Features[PASS Summit 2016] Azure DocumentDB: A Deep Dive into Advanced Features
[PASS Summit 2016] Azure DocumentDB: A Deep Dive into Advanced Features
 
Web Service Workshop - 3 days
Web Service Workshop - 3 daysWeb Service Workshop - 3 days
Web Service Workshop - 3 days
 
Xml and databases
Xml and databasesXml and databases
Xml and databases
 
OData: Universal Data Solvent or Clunky Enterprise Goo? (GlueCon 2015)
OData: Universal Data Solvent or Clunky Enterprise Goo? (GlueCon 2015)OData: Universal Data Solvent or Clunky Enterprise Goo? (GlueCon 2015)
OData: Universal Data Solvent or Clunky Enterprise Goo? (GlueCon 2015)
 
BizTalk Server Teach me something new about Flat Files (or not)
BizTalk Server Teach me something new about Flat Files (or not)BizTalk Server Teach me something new about Flat Files (or not)
BizTalk Server Teach me something new about Flat Files (or not)
 
Attacks against Microsoft network web clients
Attacks against Microsoft network web clients Attacks against Microsoft network web clients
Attacks against Microsoft network web clients
 
Global Scale ESB with Mule
Global Scale ESB with MuleGlobal Scale ESB with Mule
Global Scale ESB with Mule
 
02 xml schema
02 xml schema02 xml schema
02 xml schema
 
02 a xml_foundations
02 a xml_foundations02 a xml_foundations
02 a xml_foundations
 
Xml
XmlXml
Xml
 

Mais de xavier john (20)

Unix day4 v1.3
Unix day4 v1.3Unix day4 v1.3
Unix day4 v1.3
 
Unix day3 v1.3
Unix day3 v1.3Unix day3 v1.3
Unix day3 v1.3
 
Unix day2 v1.3
Unix day2 v1.3Unix day2 v1.3
Unix day2 v1.3
 
Interview questions
Interview questionsInterview questions
Interview questions
 
Xavier async callback_fault
Xavier async callback_faultXavier async callback_fault
Xavier async callback_fault
 
Custom faultpolicies
Custom faultpoliciesCustom faultpolicies
Custom faultpolicies
 
All adapterscommonproperties
All adapterscommonpropertiesAll adapterscommonproperties
All adapterscommonproperties
 
Custom faultpolicies
Custom faultpoliciesCustom faultpolicies
Custom faultpolicies
 
Oracle business rules
Oracle business rulesOracle business rules
Oracle business rules
 
Soap.doc
Soap.docSoap.doc
Soap.doc
 
Soa installation
Soa installationSoa installation
Soa installation
 
Vx vm
Vx vmVx vm
Vx vm
 
Webservices
WebservicesWebservices
Webservices
 
While.doc
While.docWhile.doc
While.doc
 
Xml material
Xml materialXml material
Xml material
 
Xpath
XpathXpath
Xpath
 
X query
X queryX query
X query
 
Xsd
XsdXsd
Xsd
 
Xslt
XsltXslt
Xslt
 
All adapterscommonproperties
All adapterscommonpropertiesAll adapterscommonproperties
All adapterscommonproperties
 

Último

AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 

Último (20)

AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
SHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationSHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions Presentation
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 

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