XML Schema Definition Tutorial

  Рет қаралды 39,278

arbitrarytechnology

arbitrarytechnology

3 жыл бұрын

Description and tutorial for XML Schema Definitions (XSD files). In this I show an example XML and how to create a schema that shows how to validate XML against the rules defined by the schema. I show how the commercial oXygen tool can help simplify the process and how to validate using the open-source xmllint tool

Пікірлер: 29
@gokhantok2145
@gokhantok2145 10 ай бұрын
Thank you! Your video helped me to understand and adjust a complex XSD file
@MultiAblee
@MultiAblee 2 жыл бұрын
I took a semester in information-structuring where we were supposed to learn all this. I am like 25 Minutes in and I am making your videos my god damn xml-bible. It's so clear suddenly. Your explanations are really really nice! Thank you so much!
@fuukowatty9817
@fuukowatty9817 4 ай бұрын
Great video and an indruction to XML
@changingclips
@changingclips 2 жыл бұрын
Thank you, I was about to give up with XML schemas then I saw this video and finally its is starting to make sense. Great tutorial
@dasKeks28
@dasKeks28 2 жыл бұрын
Best XSD tutorial I could find, thanks a lot!
@jarettduker1507
@jarettduker1507 Жыл бұрын
Wonderful tutorial I learned a great deal. One point that confused me and might need more explanation. Your use of the ex: or xs: prefix before your element was a little unclear. Thank you so much.
@arbitrarytechnology9354
@arbitrarytechnology9354 Жыл бұрын
Recall that the "xs" and "ex" prefixes are namespaces--a way of distinguishing duplicate names. For example XSD uses the tag "element", but perhaps you wish to use that for your own purpose. So we define "xs:element" to refer to the XSD one and "ex:element" for ours (the EXample). Now these can be anything you'd like and are defined at the top in the XMLNS attribute, so ex and xs aren't hard wired.
@jarettduker1507
@jarettduker1507 Жыл бұрын
@@arbitrarytechnology9354 Thank you. I wrote that comment about 24 minutes in as you were giving definitions. Once the practical example came out, the question resolved itself. Thank you, working my way through your playlist now.
@cetilly
@cetilly 2 жыл бұрын
Thank you Rich!!!! Fantastic tutorial on a topic that has so little coverage.
@juanfran1993
@juanfran1993 2 жыл бұрын
Great content! Thank you so much, it has been very helpful for me
@charlottec.8168
@charlottec.8168 Жыл бұрын
Thank you so much - this is a great tutorial with a helpful hands-on example. Much appreciated!
@sede189
@sede189 2 жыл бұрын
This tutorial is hands-down fantastic!! Thanks for getting it out here
@dawid_dahl
@dawid_dahl 2 жыл бұрын
Thank you so much for uploading this tutorial.
@mariumbegum7325
@mariumbegum7325 Жыл бұрын
Great tutorial! 😀
@mirazimi
@mirazimi 2 жыл бұрын
Very Helpful!
@erfanahmed_official
@erfanahmed_official Жыл бұрын
a life saving content!
@deepsudeep
@deepsudeep 2 жыл бұрын
Hi I have bunch of xsd files for validation but my data is in excel format. How would you recommend transforming the excel to xml? Also some of the xsd files have "import namespace" which is unclear to me.
@sandyprifti2462
@sandyprifti2462 3 жыл бұрын
Very helpful! Thank you!
@hehhehdummy
@hehhehdummy Жыл бұрын
xml is so verbose and ugly to me. I've tried before to learn more about xml in the past, but it wasn't imperative enough for me to overcome my aversity to xml in order to continue. Now, I have to work with some old soap services at my new job. This is a life saver. I can finally read this stuff. I still think it's weird and hate it though Thank you. good tutorial
@truepakistani9604
@truepakistani9604 2 жыл бұрын
What is targetnamespace and why is it used for ?
@rrad6601
@rrad6601 2 жыл бұрын
The TNS is the NS of what you're defining. For example, if you are defining a schema called newstuff, you might bind the TNS to www.example.com/newstuff. But your schema would still be allowed to use definitions from another namespace, like www.example.com/shareddefinitions. You can only have one TNS per schema, but *use* any number of other namespaces.
@IngmarCrone
@IngmarCrone Жыл бұрын
First sentence, immediately bragging ;)
@venig8954
@venig8954 3 жыл бұрын
Is xml schema a database or its a schema like in database where table structure etc are defined. And we need to follow the table structure??
@arbitrarytechnology9354
@arbitrarytechnology9354 3 жыл бұрын
Tables and databases are but one use for a schema (though RDBMs often call their layout "schema"). In general, a schema is a language definition, such as Backus Naur form of a formal language. A "table" can be viewed as one element definition, but only using XSD "sequence" specifiers...a table's order must always be the same in that child elements must appear in that order. For example, a table with columns "firstname", "lastname", "phone" has only one order. A more general schema might have "firstname", "optional middle name", "lastname", "optional maiden name", "optional home phone", "optional cell phone", "optional business phone", etc. This wouldn't fit well into a table record because so many optional items would waste space, and which is the "phone"? So XSD schemas can be more flexible, but more complicated than table records
@venig8954
@venig8954 3 жыл бұрын
Omg..i just needed a very basic and simple definition to understand what schema is. You have completely deviated from what I was looking for!. From what I learnt,xml schema is just like a database schrma but a bit more easier to use than database schema which is why xml is more widely used .. As simple as that! Xml schema is not something which is used only for the purpose of validation,as I have heard from many trainings. Ppl think thay xml schema is for validation.lol! Its not. You have the option of validating ur xml to a schema in xml language. Dats y we do so ,which is not the case in database. Xml schema is needed exactly when u need a table structure,say for example in projects. Else for a a simple xml with 3-4 lines code, its not required. I hve seen ppl generate schema for example xmls also,which is totally unnecessary.
@venig8954
@venig8954 3 жыл бұрын
Schema is not a language definition.even in database ,its basically to define rows n columns n tables etc.
@arbitrarytechnology9354
@arbitrarytechnology9354 3 жыл бұрын
@@venig8954 Sorry I wasn't able to answer your question...I thought you were asking about schemas in general. The project that made me create this video was, in fact, part of a formal language definition including a compiler. The XML meta-language ("tags and attributes") was used to remove the need for tokenization, and XSD described the grammar convention (the parser) of that custom language. I'm no longer sure what you were asking, but it seems you've already found the answer you needed elsewhere. Thanks for watching and I hope you enjoyed the video
@MultiAblee
@MultiAblee 2 жыл бұрын
@@venig8954 You're being an asshole. He took time outta his day to answer you, at least provide well-formed criticism. Seriously have some manners.
XSLT XPath Tutorial
1:08:20
arbitrarytechnology
Рет қаралды 44 М.
What are XML Namespaces? And how do you work with them?
23:35
Erik Wilde
Рет қаралды 4,5 М.
Sigma Kid Hair #funny #sigma #comedy
00:33
CRAZY GREAPA
Рет қаралды 38 МЛН
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 210 МЛН
Heartwarming Unity at School Event #shorts
00:19
Fabiosa Stories
Рет қаралды 24 МЛН
XML Schema (XSD) Beginner Tutorial with Demo
9:44
Automation Step by Step
Рет қаралды 344 М.
API Formats: Why JSON won over XML
14:43
Erik Wilde
Рет қаралды 11 М.
Xml Schema Defintion - XSD
34:21
Mike Møller Nielsen
Рет қаралды 35 М.
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,1 МЛН
Data Formats: XML, JSON, and YAML
23:13
Calvin Remsburg
Рет қаралды 9 М.
XML Schema
21:19
Sudhakar Atchala
Рет қаралды 46 М.
5 Command Line Tools That Boost Developer Productivity (2023)
8:02
13.6: XML and JSON - Processing Tutorial
18:00
The Coding Train
Рет қаралды 126 М.
Think Fast, Talk Smart: Communication Techniques
58:20
Stanford Graduate School of Business
Рет қаралды 39 МЛН
Новые iPhone 16 и 16 Pro Max
0:42
Romancev768
Рет қаралды 2,3 МЛН
Сколько реально стоит ПК Величайшего?
0:37
Хакер взломал компьютер с USB кабеля. Кевин Митник.
0:58
Последний Оплот Безопасности
Рет қаралды 2,1 МЛН
Xiaomi SU-7 Max 2024 - Самый быстрый мобильник
32:11
Клубный сервис
Рет қаралды 537 М.
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 7 МЛН
İĞNE İLE TELEFON TEMİZLEMEK!🤯
0:17
Safak Novruz
Рет қаралды 1,6 МЛН