More Related Content
Featured
PDF
2024 Trend Updates: What Really Works In SEO & Content Marketing PDF
Storytelling For The Web: Integrate Storytelling in your Design Process PDF
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis... PDF
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR... PDF
2024 State of Marketing Report – by Hubspot PDF
Everything You Need To Know About ChatGPT PDF
Product Design Trends in 2024 | Teenage Engineerings PDF
How Race, Age and Gender Shape Attitudes Towards Mental Health PDF
AI Trends in Creative Operations 2024 by Artwork Flow.pdf PDF
PDF
PEPSICO Presentation to CAGNY Conference Feb 2024 PDF
Content Methodology: A Best Practices Report (Webinar) PPTX
How to Prepare For a Successful Job Search for 2024 PDF
Social Media Marketing Trends 2024 // The Global Indie Insights PDF
Trends In Paid Search: Navigating The Digital Landscape In 2024 PDF
5 Public speaking tips from TED - Visualized summary PDF
ChatGPT and the Future of Work - Clark Boyd PDF
Getting into the tech field. what next PDF
Google's Just Not That Into You: Understanding Core Updates & Search Intent PDF
How to have difficult conversations Xml p4 Lecture Notes
- 1.
- 2.
xsd
• Schema ---1.Simple type(no child,attributes)
• restriction,built in data types.
• 2.Complex type(can contain)
• Simple content----no child,extension,restriction.
• Complex content------child,no limitations
2
- 3.
- 4.
Top Layer
• <?xmlversion="1.0"?>
<note xmlns="https://www.w3schools.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xsi:schemaLocation="https://www.w3schools.com
note.xsd">
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
4
- 5.
- 6.
- 7.
- 8.
Complex type
• <productpid="1345"/>
• <employee>
<firstname>John</firstname>
<lastname>Smith</lastname>
</employee>
• <food type="dessert">Ice cream</food>
• <description>
It happened
on <date lang="norwegian">03.03.99</date> ....
</description>
8
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
- 22.
- 23.
- 24.
- 25.
- 26.
- 27.
- 28.
- 29.
- 30.
- 31.
Complex type
• <xml version=“1.0”>
•<schema xmlns=http://www.w3.org/2001/XMLSchema
• xmlns:computer= “”
• targetnamespace=“ “>
• <simpleType name=“gigahertz”>
• <restriction base=“decimal”>
• <mininclusive value=“2.1”/>
• </restriction>
• </simpleType>
• <complexType name=“CPU”>
• <simpleContent>
• <extension base=“string”>
• <attribute name=“model” type=“string”/>
• </extension>
• </simpleContent>
• </complexType>
31
- 32.
Complex type
• <complexType name=“portable’>
•<all>
• <element name=“processor” type=“computer:cpu” />
• <element name=“monitor” type=“int” />
• <element name=“CPUSpeed” type=“computer:gigahertz” />
• <element name=“RAM” type=“int” />
• </all>
• <attribute name=“manufacturer” type=“string” />
• </complexType>
• <element name=“laptop” type=“computer:portable” />
• </schema>
32