Тёмный

XML Schema (XSD) Beginner Tutorial with Demo 

Automation Step by Step
Подписаться 531 тыс.
Просмотров 355 тыс.
50% 1

website - automationstep...
What is XML Schema or XSD
How to create XML Schema
How to validate XML against Schema
XML Schema or XSD (XML Schema Definition)
XML Schema describes the structure of an XML document
is written in XML
References
Files used in demo - drive.google.c...
XML Formatter - www.freeformat...
XML Schema Generator - www.freeformat...
XML Schema Validator - www.liquid-tec...
extendsclass.c...
Join Automation Step By Step channel: www.youtube.co...
My Udemy Courses - automationstep...
Every LIKE & SUBSCRIPTION gives me great motivation to keep working for you
You can support my mission for education by sharing this knowledge and helping as many people as you can
If my work has helped you, consider helping any animal near you, in any way you can.
_______ ONLINE COURSES TO LEARN _______
automationstep...
GitHub - github.com/Rag...
Udemy - www.udemy.com/...
Training by Raghav at your venue - raghav.qna@gmail.com
Training schedule - automationstep...
----------- UI TESTING -----------
Selenium Beginners - bit.ly/2MGRS8K
Selenium Java Framework from Scratch - bit.ly/2N9xvR6
Selenium Python - bit.ly/2oyMp5x
Selenium Tips - bit.ly/2owxc50
Selenium Builder - bit.ly/2MKNtlq
Katalon Studio - bit.ly/2wARFdi
Robot Framework with RIDE- bit.ly/2Px6Ue9
Robot Framework with Eclipse - bit.ly/2N8DZxb
Protractor - bit.ly/2KtqVkU
TestProject - bit.ly/2DRNJYE
----------- API TESTING -----------
Web Services (API) - bit.ly/2MGafL7
SoapUI - bit.ly/2MGahmd
Postman - bit.ly/2wz8LrW
General - bit.ly/2PYdwmV
Katalon Studio API Testing - bit.ly/2BwuCTN
----------- MOBILE TESTING -----------
Appium - bit.ly/2ZHFSGX
Mobile Playlist - bit.ly/2PxpeUv
----------- CI | CD | DEVOPS -----------
Jenkins Beginner - bit.ly/2MIn8EC
Jenkins Tips & Trick - bit.ly/2LRt6xC
Docker - bit.ly/2MInnzx
Kubernetes - bit.ly/2MJIlMK
------------VIRTUALISATION------------
Virtualization on windows - bit.ly/2SItIL9
----------- VERSION CONTROL SYSTEM -----------
Git & GitHub - bit.ly/2Q1pagY
GitLab - bit.ly/2kQPGyQ
----------- PERFORMANCE TESTING -----------
JMeter Beginner - bit.ly/2oBbtIU
JMeter Intermediate - bit.ly/2oziNVB
JMeter Advanced - bit.ly/2Q22Y6a
JMeter Tips & Tricks - bit.ly/2NOfWD2
Performance Testing - bit.ly/2wEXbLS
----------- PROGRAMMING -----------
Java Beginners - bit.ly/2PVUcXs
Java Tips & Tricks - bit.ly/2CdcDnJ
GROOVY - bit.ly/2FvWV5C
JAVASCRIPT - bit.ly/2KJDZ8o
PYTHON - bit.ly/2Z4iRye
----------- IDE -----------
Visual Studio Code - bit.ly/2V15yvt
----------- BUILD TOOLS -----------
Maven - bit.ly/2NJdDRS
Gradle - bit.ly/30l3h1B
----------- OTHERS -----------
Redis- bit.ly/2N9jyCG
Misc - bit.ly/2Q2q5xQ
Tools & Tips - bit.ly/2oBfwoR
QnA Friday- bit.ly/2NgwGpw
Sunday Special - bit.ly/2wB23BO
Ask Raghav - bit.ly/2CoJGWf
Interviews - bit.ly/2NIPPxk
All Playlists - bit.ly/2LSiezA
---------- Connect with Raghav -----------
Website - automationstep...
LifeCharger -
Udemy Courses - www.udemy.com/...
Facebook - / automationstepbystep
Twitter - / learnwithraghav
RU-vid - / automationstepbystep
Never Stop Learning
Raghav

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 482   
@rehabalsaadi7335
@rehabalsaadi7335 2 года назад
i hope my professor to open your video and start Learning before he came to the class and And he teaches us wrong things and complicates the subject.🙂🙂💔
@RaghavPal
@RaghavPal 2 года назад
So happy & humbled to see your message Rehab
@DiluculoOrtus
@DiluculoOrtus 8 месяцев назад
This comment is hilarious
@gianluca_ruggieri
@gianluca_ruggieri 3 года назад
Hi Raghav, I truly believe that RU-vid should come up with a kind of bonuses for channels like your’s. You are a great teacher, and your channel moves the world forward, especially considering your courses and lectures are free 👏👏
@RaghavPal
@RaghavPal 3 года назад
I am so happy and humbled to see this message Gianluca
@DavidCSaint
@DavidCSaint 3 года назад
Well said. Fr
@willievihaan6643
@willievihaan6643 3 года назад
Sorry to be so off topic but does anyone know a tool to get back into an Instagram account..? I was dumb forgot the login password. I would love any assistance you can offer me
@jonesmike53
@jonesmike53 2 года назад
This is a really great into to XML / XSD. Many thanks for such a clear and succinct presentation.
@RaghavPal
@RaghavPal 2 года назад
Most welcome
@cookinggardeningandpets1559
@cookinggardeningandpets1559 3 года назад
Great Explanation. Absolutely loved it. Also Thank you sir for showing us all the available online websites for practicing.
@RaghavPal
@RaghavPal 3 года назад
Most welcome
@SundayStreamer
@SundayStreamer 3 года назад
Absolutely on point and very well defined. Thankyou for making it simpler for me
@RaghavPal
@RaghavPal 3 года назад
You're very welcome Aamir
@supriyomitra6135
@supriyomitra6135 Год назад
Excellent video...thank you so much, this is exactly what I was looking for. I will definitely go through your other videos too.
@RaghavPal
@RaghavPal Год назад
Glad it was helpful Supriyo
@vlonac7733
@vlonac7733 3 года назад
Exactly what I needed, thank You!
@RaghavPal
@RaghavPal 3 года назад
You're welcome!
@TheFallonCarrington
@TheFallonCarrington 2 года назад
You are truly amazing. I’m currently in my MSHCI program and this has help me immensely. Thank you so much!!!!
@RaghavPal
@RaghavPal 2 года назад
So glad to know this helped Fallon
@bhawanabhatt4369
@bhawanabhatt4369 2 года назад
Best best super best video all over the world thank uuuuu very very much 💕💕💕
@RaghavPal
@RaghavPal 2 года назад
Most welcome Bhawana
@ChitoDP
@ChitoDP 2 года назад
I am applying for an IT role in a company that I really like, the manager got interested in my resume and one of the job requirements is knowledge in XML, so I am preparing for the interview. Thank you so much for these videos!
@RaghavPal
@RaghavPal 2 года назад
Most welcome
@carlcody8911
@carlcody8911 3 года назад
Thank You! Refreshingly precise explanation.
@RaghavPal
@RaghavPal 3 года назад
You are welcome Carl
@apurvabarot3418
@apurvabarot3418 3 года назад
Thank you sooo much for this great XML series 👍🏻👍🏻👍🏻
@RaghavPal
@RaghavPal 3 года назад
Most welcome Apurva
@shaguftanasir7289
@shaguftanasir7289 Год назад
Thank u. Needed help in understanding for an assignment. My teachers just gave slides, barely explained anything and confused me. However, this 10 min xml video of your really made everything clear. Thanks again :)
@RaghavPal
@RaghavPal Год назад
You're very welcome Shagufta
@skewty
@skewty Год назад
Great introduction! I wish you included a bit about ``.. This seems to only cover too little.
@RaghavPal
@RaghavPal Год назад
Scott I will plan more videos and cover this
@smiley-wu1kn
@smiley-wu1kn 3 года назад
I learned a lot about XML from just 7 videos; thank you very much. I began XML because I recently completed a java course and now I'm on my way to create my first app. Will you upload more videos about XML? And also, where should I go from here or what else should I learn if I want to make an android app using XML for UI and Java for back-end? Again, thank you very much!!!
@RaghavPal
@RaghavPal 3 года назад
Great to know. I will plan more sessions in some time, If you want to learn more can check my tutorials here - automationstepbystep.com/
@johncena-fx2ur
@johncena-fx2ur 2 года назад
Amazing quality video
@RaghavPal
@RaghavPal 2 года назад
Thanks
@Quadropheniaspain
@Quadropheniaspain 2 года назад
after reading many pages of theory i was completely lost. thans to your video now i understand it very clearly. you're doing a great job, keep on.
@RaghavPal
@RaghavPal 2 года назад
So happy to know
@markc915
@markc915 8 месяцев назад
Straightforward and easy to understand material. Many explanation on the web always assumes we have some prior knowledge of certain technical terms already and require us to google more just to understand the explanation. Your explanation clear and concise. Thanks.
@RaghavPal
@RaghavPal 8 месяцев назад
Thanks for the kind words Mark
@RahulSharma-qn9gi
@RahulSharma-qn9gi 2 года назад
thank you ssssssooooooomuch... Very helpful. God Bless you. I've been struggling on this understanding and got a useful video
@RaghavPal
@RaghavPal 2 года назад
You are very welcome Rahul
@janumohan5786
@janumohan5786 3 года назад
very clear!! Please keep making videos and continue the good work!
@RaghavPal
@RaghavPal 3 года назад
Thank you! Will do!
@GregoryMonk-o5b
@GregoryMonk-o5b 10 часов назад
Quitzon Locks
@floresarriagamarianabelen3177
@floresarriagamarianabelen3177 3 года назад
Amazing! I really could underestand! thanks
@RaghavPal
@RaghavPal 3 года назад
Glad it helped Mariana
@santhoshs7028
@santhoshs7028 2 года назад
This xml playlist was very useful sir Thank you
@RaghavPal
@RaghavPal 2 года назад
Most welcome Santhosh
@keithstern7777
@keithstern7777 3 месяца назад
Well presented and informative, even to the untrained this video is very useful. Thank you so much for sharing
@RaghavPal
@RaghavPal 3 месяца назад
Most welcome Keith
@robynrox
@robynrox 3 года назад
Very nice into to XSD for a dev who has somehow managed to avoid it for years, thanks!
@RaghavPal
@RaghavPal 3 года назад
So happy to know this Robyn
@spavankumarreddy8928
@spavankumarreddy8928 3 года назад
How to create simple xml schema for an email which will contain from, to,cc, subject,body, attachmentlink,high priority,sent date time,format
@RaghavPal
@RaghavPal 3 года назад
Hi Pavan, will need to see some examples online
@ankitshukla5800
@ankitshukla5800 Год назад
Thank you so much for this video....pls make more videos like it ....with different formats as well
@RaghavPal
@RaghavPal Год назад
I will try my best Ankit
@hyukki
@hyukki 2 года назад
Hi Raghav I like your video This may be a dumb question but why do we need XSD? Isn't XML enough? Thanks
@RaghavPal
@RaghavPal 2 года назад
Hi, this can help stackoverflow.com/questions/3403644/what-is-the-purpose-of-xsd-files
@BrownGrace-x1p
@BrownGrace-x1p 15 часов назад
Cronin Flats
@albertbeaulne9114
@albertbeaulne9114 23 дня назад
do you provide conversion services such as XML to excel
@RaghavPal
@RaghavPal 22 дня назад
No Albert
@OlliePetroske-c5i
@OlliePetroske-c5i 16 часов назад
Grady Squares
@Eva-kt3tu
@Eva-kt3tu 3 месяца назад
thank you so much for saving my time of reading very loooong slides of the university course
@RaghavPal
@RaghavPal 3 месяца назад
Most welcome Eva
@infojr.2299
@infojr.2299 2 года назад
Thank you King! Best tutorial ever!
@RaghavPal
@RaghavPal 2 года назад
You're welcome!
@rahulmarathe7683
@rahulmarathe7683 2 года назад
Hello Raghav, these 7 XML videos playlist covers entire topic of XML? Or any new video you are going to add in this?
@RaghavPal
@RaghavPal 2 года назад
Hi Rahul, I created these to have a good basic understanding on XML and its structure. I may plan to add more in future
@Rashomon69
@Rashomon69 2 года назад
This was a excellent explanation. It was very clear and to the point. Subbed!
@RaghavPal
@RaghavPal 2 года назад
Welcome aboard!
@gitagavandi5424
@gitagavandi5424 7 месяцев назад
Thanku sir...
@RaghavPal
@RaghavPal 7 месяцев назад
Most welcome Gita
@lhd7105
@lhd7105 Год назад
Thank you so much for this wonderfully succinct introduction to XML validation, I really appreciate it!! I am often in awe at new ways of teaching, especially strikeing examples of using teaching tools well, so I hope you don't mind that I noticed that you were able to, seemingly while live-streaming this video, draw oval-rectangle boxes whenever you like with your mouse cursor. I think that's brilliant!! Is this enabled by something like Camtasia or..? May I inquire how you invoke this insanely cool dark magic? :) Wish you all the best and stay safe, keep rocking hard and rocking on!! *hugs*
@RaghavPal
@RaghavPal Год назад
Great you liked it, It's mac annotation tools
@5lyohmusiccollection
@5lyohmusiccollection 14 дней назад
Hack tool please or application please
@RaghavPal
@RaghavPal 12 дней назад
need more details
@yashpatidar8308
@yashpatidar8308 3 года назад
I m very thankfull to watch this ...learned a lot from this ...sir can you plz tell that further more videos will be published or not ?
@RaghavPal
@RaghavPal 3 года назад
Hi Yash, I will plan to add more videos in future, YOu can find all here - automationstepbystep.com/
@saichandana9681
@saichandana9681 3 года назад
Which data type we have to use for currency like $5.67 in XML schema
@RaghavPal
@RaghavPal 3 года назад
Hi Sai, you can take any xml having this value and convert to schema and check
@learnunixshellscripting9561
@learnunixshellscripting9561 3 года назад
Thank you for the clear explanation sir.
@RaghavPal
@RaghavPal 3 года назад
You are welcome
@vivekpunathil3145
@vivekpunathil3145 7 месяцев назад
Thank you Sir . My sincere gratitude for this video❤
@RaghavPal
@RaghavPal 7 месяцев назад
Glad it was helpful Vivek
@sarvasaravanan8487
@sarvasaravanan8487 2 года назад
Hi Raghav. It was a very short and useful video. Very nice.
@RaghavPal
@RaghavPal 2 года назад
Thanks Sarva
@uttarakhandtravel2130
@uttarakhandtravel2130 2 года назад
have you worked with swagger schema?
@RaghavPal
@RaghavPal 2 года назад
Not much
@sitatexserver6147
@sitatexserver6147 2 года назад
Thank you very much. God bless you. You are Great Teacher
@RaghavPal
@RaghavPal 2 года назад
You are very welcome
@ManjunathSampangi
@ManjunathSampangi 3 года назад
Very good and clear explaination. Really I understand what is xsd and it's structure and how to validate. Please keep up the good work. 🙏
@RaghavPal
@RaghavPal 3 года назад
Glad it was helpful Manjunath
@MrHanziboy
@MrHanziboy Год назад
very clear explanation my friend, thank you
@RaghavPal
@RaghavPal Год назад
Most welcome
@jurgennagel2833
@jurgennagel2833 3 года назад
Habe eine kurze Frage: ich habe eine xml Stewuerdatei geschrieben, funktioniert auch, es wird u.a. die IBAN Nr. angezeigt. Aus Datenschutzgründen möchte ich aber nur die ersten 4 zeichen, danach 16 X und am schluss die letzten 2 zeichen der IBAN anzeigen. Schreibweise ? Left(IBAN,4);"XXXXXXXXXXXXXXXX";right(IBAN,2) ?????
@RaghavPal
@RaghavPal 3 года назад
Da bin ich mir nicht ganz sicher Jürgen muss Online-Hilfe in Anspruch nehmen
@yashshrivastava1404
@yashshrivastava1404 9 месяцев назад
very clear explanation. want a tutorial on DTD also.
@RaghavPal
@RaghavPal 9 месяцев назад
Thanks.. noted Yash
@hemanthkumarreddy7472
@hemanthkumarreddy7472 2 года назад
What opaque schema. Xsddoes will it decode base 64 data ?
@RaghavPal
@RaghavPal 2 года назад
will need more details Hemanth
@nostrajara
@nostrajara 2 года назад
thanks for the video... very clear and useful.
@RaghavPal
@RaghavPal 2 года назад
You are welcome Oscar
@indranilgoswami1500
@indranilgoswami1500 Год назад
Thanks a lot Raghav.. Very well taught..
@RaghavPal
@RaghavPal Год назад
Most welcome
@kathrynmckenzie9229
@kathrynmckenzie9229 2 года назад
Thank you for this helpful explanation!
@RaghavPal
@RaghavPal 2 года назад
Most welcome Kathryn
@Koffieleuter
@Koffieleuter 2 года назад
Thank you Raghav. Very clear explanation!
@yazidanli6323
@yazidanli6323 2 года назад
thank u, it helped me a lot...i was getting erros about it.
@RaghavPal
@RaghavPal 2 года назад
Glad to know this Azide
@Ashanfx
@Ashanfx 3 года назад
Hello thank you for the video it's very useful, can you please let me know how to import wsdl to xsd file ?
@RaghavPal
@RaghavPal 3 года назад
I will need to check on this
@sharikapathirana
@sharikapathirana 2 года назад
Thank u This was a great support
@RaghavPal
@RaghavPal 2 года назад
Most welcome Sharika
@RelaxingMusic-fj6ug
@RelaxingMusic-fj6ug 5 дней назад
Great sessions brother😀
@RaghavPal
@RaghavPal 5 дней назад
Thanks for the visit
@venig8954
@venig8954 3 года назад
But you dint tell us what XML schema is? Y is it needed?
@RaghavPal
@RaghavPal 3 года назад
Ok, will add another session for that Veni
@jaiylonbabb7548
@jaiylonbabb7548 2 года назад
What if the age element had a child. How would that be written?
@RaghavPal
@RaghavPal 2 года назад
Hi Jaiylon, just add the element and check in xsd tools
@arek9430
@arek9430 7 месяцев назад
Thanks for the whole playlist
@RaghavPal
@RaghavPal 7 месяцев назад
You're welcome 😊
@jensharbers5620
@jensharbers5620 3 года назад
Working with Latex pays off now
@RaghavPal
@RaghavPal 3 года назад
thanks for watching Jens
@georgetsiklauri
@georgetsiklauri Год назад
One thing you could've covered as well is - how to refer XSD from XML.. or just how some XML relates to some XSD.
@RaghavPal
@RaghavPal Год назад
Sure Giorgi, I will check on this, can you share some links to refer
@georgetsiklauri
@georgetsiklauri Год назад
@@RaghavPal what links..? I don't understand what you mean. I just suggested, that you could have also included the point - how to relate XSD to XML. I don't know what links should/shall I share..
@RaghavPal
@RaghavPal Год назад
Ok, I will check on this
@lrpbro6945
@lrpbro6945 8 месяцев назад
Sir you are really an amazing teacher to help me on alllll API content also ,my doubt is how to edit XML datas using JAVA sir ,any video from u is there before
@RaghavPal
@RaghavPal 8 месяцев назад
I do not have a video but here's a guide on editing XML data using Java: 1. Choose a Parsing API: - DOM (Document Object Model): - Loads entire XML document into memory for tree-like manipulation. - Ideal for small to medium-sized files and frequent modifications. - SAX (Simple API for XML): - Processes XML sequentially, event-driven approach. - Suitable for large files and memory-efficiency. - StAX (Streaming API for XML): - Pull-based parsing, offering more control over parsing flow. - Useful for large files and specific parsing needs. 2. Load XML Document: - DOM: ```java DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document doc = builder.parse("your_xml_file.xml"); ``` - SAX: ```java SAXParserFactory factory = SAXParserFactory.newInstance(); SAXParser parser = factory.newSAXParser(); XMLReader reader = parser.getXMLReader(); reader.setContentHandler(new YourContentHandler()); // Implement ContentHandler reader.parse("your_xml_file.xml"); ``` 3. Navigate and Modify: - DOM: ```java // Access elements: NodeList nodes = doc.getElementsByTagName("elementName"); Node firstElement = nodes.item(0); // Modify attributes: Element element = (Element) firstElement; element.setAttribute("attributeName", "newValue"); // Modify text content: element.setTextContent("New text content"); ``` - SAX: Handle events like `startElement`, `endElement`, `characters` in your `ContentHandler` implementation to modify data as it's parsed. 4. Save Changes: - DOM: ```java TransformerFactory transformerFactory = TransformerFactory.newInstance(); Transformer transformer = transformerFactory.newTransformer(); transformer.transform(new DOMSource(doc), new StreamResult(new File("updated_xml_file.xml"))); ``` - SAX: SAX doesn't directly modify the original document. Implement writing logic within your `ContentHandler`. Additional Considerations: - Namespaces: Handle XML namespaces appropriately for correct element retrieval. - Validation: Consider validating XML against a schema (DTD or XSD) to ensure consistency. - Libraries: Explore libraries like Xerces, JAXB, or JDOM for advanced features and convenience.
@lrpbro6945
@lrpbro6945 8 месяцев назад
@@RaghavPal thank u so much sir it's working fine , but it's showing the error called JAVA LEAKAGE ERROR sir , how to solve that sir , please tell me sir inside the KATALON STUDIO
@RaghavPal
@RaghavPal 8 месяцев назад
Before tackling the error, let's pinpoint its source. Here are some steps to diagnose the Java leakage issue in Katalon Studio: Check Logs: Analyze Katalon Studio logs for specific details about the "Java Leakage Error." Identify the object types involved and any related stack traces. Memory Monitoring: Utilize JVisualVM or VisualVM to monitor memory usage during test execution. Identify objects persistently occupying memory, causing a gradual increase. Code Review: Scrutinize your test scripts for potential resource leaks. Common culprits include unclosed network connections, databases, files, or streams. Third-Party Dependencies: Investigate potential memory leaks within installed Katalon Studio plugins or external libraries. esolving the Leakage: Once you identified the source, implement appropriate solutions: Implement Proper Closing: Ensure proper closing of resources like connections, databases, files, and streams using close() or shutdown() methods within your test scripts. Avoid Unnecessary Objects: Minimize object creation within loops or frequently executed sections. Consider reuse or object pooling strategies. Garbage Collection Tuning: Analyze and adjust JVM garbage collection parameters if necessary, but tread cautiously as inappropriate tuning can be counterproductive. Update Dependencies: Check for updated versions of Katalon Studio plugins or external libraries that might address known memory leaks. Consider Reducing Script Complexity: Complex scripts with extensive object interaction or manipulation can exacerbate the issue. Refactoring and simplification might be necessary.
@jeanpaulnishimirwe2609
@jeanpaulnishimirwe2609 2 года назад
Thank you, this was an intersting video
@RaghavPal
@RaghavPal 2 года назад
Most welcome Jean
@knightysoul6818
@knightysoul6818 4 дня назад
Thank you sir❤
@RaghavPal
@RaghavPal 4 дня назад
Most welcome
@pranaygopale5465
@pranaygopale5465 3 года назад
Thank U ....It was so helpfull.!!!
@RaghavPal
@RaghavPal 3 года назад
Most welcome Pranay
@riendachiang
@riendachiang 3 года назад
Thank you for the video shared, very clear!
@RaghavPal
@RaghavPal 3 года назад
Glad it was helpful Yulu
@mohinpinjar3518
@mohinpinjar3518 Год назад
Does this video completes the playlist?
@RaghavPal
@RaghavPal Год назад
Yes Mohin, can also check more here - automationstepbystep.com/
@wieslawhus2069
@wieslawhus2069 10 месяцев назад
How to create C# classes from an XSD file? The xsd.exe program can't do it. Are there other preferably free tools?
@RaghavPal
@RaghavPal 10 месяцев назад
There are several free tools available for generating C# classes from XSD files. Here are a couple of popular options: 1. *xsd2code:* xsd2code is a free open-source tool that generates C# classes from XSD files. It provides a variety of options for customizing the generated code, including namespace, property naming conventions, and code generation templates. 2. *Visual Studio Tools for XSD:* Visual Studio Tools for XSD is an extension for Visual Studio that provides integrated support for generating C# classes from XSD files. It offers a user-friendly interface and makes it easy to configure the code generation options. 3. *XmlSerializer:* XmlSerializer is a built-in class in the .NET Framework that can be used to deserialize XML data into C# objects. Although it doesn't directly generate C# classes from XSD files, it can be used to create object representations of XML data based on an XSD schema. In addition to these free tools, there are also several commercial tools available that offer more advanced features and support for generating C# classes from complex XSD schemas. If you have simple XSD schemas and prefer a command-line tool, xsd2code is a good option. If you are using Visual Studio and prefer a graphical interface, Visual Studio Tools for XSD is a good choice. And if you want to use XmlSerializer to deserialize XML data, it's a free and well-supported option.
@wieslawhus2069
@wieslawhus2069 10 месяцев назад
@@RaghavPal Thanks, but nothing works. Check it out if you have the desire and time. crd.gov.pl/xml/schematy/dziedzinowe/mf/2022/01/05/eD/DefinicjeTypy/
@RaghavPal
@RaghavPal 10 месяцев назад
ok
@k2gh452
@k2gh452 Год назад
thx this helped me a lot but what about DTD ?
@RaghavPal
@RaghavPal Год назад
I will check and add on this
@nazeers5684
@nazeers5684 3 месяца назад
where the schema used in cloud
@RaghavPal
@RaghavPal 3 месяца назад
Nazeeer In a cloud environment, XML schemas can be used in various ways depending on the specific cloud service or platform being used. Here are some common use cases where XML schemas may be employed in a cloud setup: 1. Data Exchange: XML schemas are often used for data exchange between cloud services and clients. For example, many APIs in cloud-based services use XML as a format for sending and receiving data. In this case, the XML schema defines the structure of the data being exchanged. 2. Configuration: Cloud services often rely on configuration files to customize the behavior of different components. XML schemas can be used to define the structure and rules for these configuration files. For instance, in cloud infrastructure management tools, XML schemas can specify the format for configuration files that define virtual machines, networks, and other resources. 3. Service Definitions: XML schemas can be used to define the structure of services in cloud environments. For example, in a platform-as-a-service (PaaS) offering, the service definition may be specified using XML schemas to describe the endpoints, input/output parameters, and other details of the service. 4. Workflow Orchestration: Cloud-based workflow orchestration tools often use XML schemas to define the steps, conditions, and transitions in a workflow. The XML schema helps in ensuring that the workflow is executed correctly according to the defined structure. 5. Logging and Monitoring: XML schemas can also be used for defining the format of log files and monitoring data in cloud environments. By using a standardized schema, it becomes easier to parse and analyze the logs and monitoring data generated by various cloud services. Overall, XML schemas play a crucial role in defining the structure and semantics of data and configurations in cloud-based systems. They ensure interoperability, consistency, and clarity in communication between different components and services in the cloud environment. --
@kirancrazy393
@kirancrazy393 2 года назад
Crystal clear.. nice explanation
@RaghavPal
@RaghavPal 2 года назад
Glad it was helpful!
@LanPham-os2ds
@LanPham-os2ds 2 года назад
It has become much clearer to me. I have one question, why do we need to validate our XML file when XSD data is generated from the original XML file? Thank you so much.
@RaghavPal
@RaghavPal 2 года назад
Hi Lan, here I have shown this for example that how an XSD file looks like, In general, you will have an XSD first and will have to create XML accordingly
@millax-ev6yz
@millax-ev6yz 11 месяцев назад
Hello, so I apologize if I am missing the point. It seems that the schema verifies the xml is organized properly and of the correct data types. Is there more? I'm curious how this is used, is there some software on a client that typically receives an xml file and does a check against the xsd and rejects or passes it? What then is done once xml passes the check? Do they convert it into an object?
@RaghavPal
@RaghavPal 11 месяцев назад
Yes, XML schemas can be used to verify that XML is organized properly and of the correct data types. However, they can also be used to do more, such as: * Define constraints on the relationships between elements and attributes. * Define default values for elements and attributes. * Document the XML vocabulary. * Generate documentation for XML parsing and processing tools. * Generate code to parse and process XML. XML schemas are used in a variety of ways, including: * To ensure that XML data is exchanged correctly between different systems. * To validate XML data before it is processed. * To generate documentation for XML vocabularies. * To generate code to parse and process XML. When an XML file is received by a client, the client can use an XML parser to parse the file. The XML parser will check the XML file against the XML schema to verify that it is valid. If the XML file is valid, the client can then process the XML data. **Example:** A company might use an XML schema to define the format of purchase orders. The company would then send XML purchase orders to its suppliers. The suppliers would use an XML parser to parse the purchase orders and verify that they are valid. If the purchase orders are valid, the suppliers would then process the purchase orders. **Converting XML to an object:** Once an XML file has been parsed and validated, it can be converted to an object. This can be done using an XML processing tool, such as XSLT or JAXB. The object can then be used by the client application in a variety of ways, such as to: * Display the data to the user. * Store the data in a database. * Use the data to perform calculations. *Overall, XML schemas are a powerful tool for defining, validating, and processing XML data.*
@millax-ev6yz
@millax-ev6yz 11 месяцев назад
@@RaghavPal ok great and thank you! Do you have other videos going into that expanded responsibility of schema? This one appears to just be types and limits. Thanks again
@RaghavPal
@RaghavPal 11 месяцев назад
Can check all videos of this playlist here - automationstepbystep.com/
@HariKrishna-r2b
@HariKrishna-r2b 11 месяцев назад
Hi Raghav ji, Your way of teaching is awesome. Even non Technical people can also understand very easily. Thank you so much
@RaghavPal
@RaghavPal 11 месяцев назад
So nice of you Hari
@keithswan9834
@keithswan9834 Год назад
Hi Raghav, really informative, clear and well presentation, thank you!
@RaghavPal
@RaghavPal Год назад
Most welcome Keith
@wenlinchen3599
@wenlinchen3599 Год назад
Thanks for introducing these two validating websites! very useful to check the syntax for beginner
@RaghavPal
@RaghavPal Год назад
Most welcome
@itsm3dud39
@itsm3dud39 2 года назад
bro is this the last video of the course?
@RaghavPal
@RaghavPal 2 года назад
Yes, can check all here automationstepbystep.com/
@orwa475
@orwa475 3 года назад
do i always need to put that first line ?
@RaghavPal
@RaghavPal 3 года назад
Yes as per the syntax
@ilonaochudlo4547
@ilonaochudlo4547 6 месяцев назад
Thank you. You explained it to me very well. You're doing a brilliant job
@RaghavPal
@RaghavPal 6 месяцев назад
You're very welcome Ilona
@Campa-nit
@Campa-nit 2 года назад
Thanks Raghav, you are a great teacher! I can't find this annywhere. What does this pattern restriction mean? Does it mean no spaces are allowed? Thanks
@RaghavPal
@RaghavPal 2 года назад
Hi, Restriction element is used to define accepted values that an XML element can take. like in the above example it can only take STring values
@Campa-nit
@Campa-nit 2 года назад
@@RaghavPal Thanks for your reply! For some reason the code did not paste correctly. These was a '[\S]+' in the restriction: . That is what I didn't understand
@RaghavPal
@RaghavPal 2 года назад
that is regex, if you need to learn more can read this - automationstepbystep.com/2020/05/05/a-story-of-regex/
@Campa-nit
@Campa-nit 2 года назад
@@RaghavPal you're the best, thanks!!!
@KrishnaGupta-yc3jd
@KrishnaGupta-yc3jd 2 года назад
Do you have other tutorials too regarding xml schema? Highly thankful for such wonderful video
@RaghavPal
@RaghavPal 2 года назад
Hi Krishna, can check here - automationstepbystep.com/
@johanwalll
@johanwalll 2 года назад
Great tutorial. Thanks!
@RaghavPal
@RaghavPal 2 года назад
You're welcome Johan
@tiranito2834
@tiranito2834 6 месяцев назад
This was the best video ever on this subject. I simply don't get why teachers feel the need to overcomplicate things during explanations, they only cause themselves to make mistakes and leave us with a half assed class where all we say were validation failures for 2 hours on end. This video has singlehandedly carried all programmers and people learning XML through their degrees or bootcamps for 3 years straight. Thanks a lot. One of the things that this video does implicitly that no other resource explains (surprisingly not even official documentation explains this lol) is the reason WHY we use a separate tag for complex elements instead of it just being a type attribute as with the other fundamental types. By learning what you learn in this video, you also end up understanding WHY the schema works in the first place and what the purpose of the definitions within the URI are.
@RaghavPal
@RaghavPal 6 месяцев назад
I am so humbled to read this.. Thanks a lot.
@Aayus.Karki10
@Aayus.Karki10 28 дней назад
Thanks for such a 💎 ❤❤
@RaghavPal
@RaghavPal 25 дней назад
Most welcome Aayus
@stephendevlin97
@stephendevlin97 5 месяцев назад
Thank you Raghav, great course and well thought out and presented.
@RaghavPal
@RaghavPal 5 месяцев назад
Most welcome Stephen
@ramdas-dh2bl
@ramdas-dh2bl 4 месяца назад
Where to know the syntax like Maxoccur etc
@RaghavPal
@RaghavPal 4 месяца назад
Ram, Ideally it will be given to you. For testing we can try with our own schema and test
@ramdas-dh2bl
@ramdas-dh2bl 4 месяца назад
@@RaghavPal thank you,your videos are really helpful👍
@rohitkumar-nk6sd
@rohitkumar-nk6sd Год назад
Hi Raghav great tutorial i want to convert XML to XSD by hard coding.Can you let me know possible ways to achieve it with python. Thanks in advance
@RaghavPal
@RaghavPal Год назад
Hi Rohit Certainly! In Python, you can use the `xmlschema` library to generate an XSD (XML Schema Definition) from an XML document. Here's an example of how you can achieve this: 1. Install the `xmlschema` library by running the following command: ``` pip install xmlschema ``` 2. Write a Python script with the following code: ```python import xmlschema # Define the XML file path xml_file = 'path/to/your/xml/file.xml' # Load the XML file and generate the XSD schema = xmlschema.XMLSchema(xml_file) xsd_content = schema.tostring() # Save the XSD to a file xsd_file = 'path/to/save/xsd/file.xsd' with open(xsd_file, 'w') as file: file.write(xsd_content) ``` Replace `'path/to/your/xml/file.xml'` with the actual path to your XML file and `'path/to/save/xsd/file.xsd'` with the desired path to save the generated XSD file. 3. Run the Python script, and it will generate the XSD file based on the XML structure. This code utilizes the `xmlschema.XMLSchema` class to load the XML file and generate the XSD representation. The `tostring()` method is used to obtain the XSD content as a string, which can then be saved to a file. Make sure that your XML file follows a valid structure, as the generated XSD will reflect the structure defined in the XML. Note: Converting XML to XSD by hard coding is a challenging task since the XML may contain complex structures and data types that need to be accurately reflected in the XSD. It's recommended to review the generated XSD and make any necessary modifications or refinements based on your specific requirements.
@rohitkumar-nk6sd
@rohitkumar-nk6sd Год назад
@@RaghavPal Hi xmlschema.XMLSchema accepts XSD for validation it does not create XSD i have tried it
@RaghavPal
@RaghavPal Год назад
I will check this, Can try online help
@rohitkumar-nk6sd
@rohitkumar-nk6sd Год назад
@@RaghavPal Hi raghav i found a way you can create XSD by simple extension in vscode by redhat
@Anonymous_JM007
@Anonymous_JM007 Год назад
it was very information full
@RaghavPal
@RaghavPal Год назад
Thanks
@jaxparrow1794
@jaxparrow1794 2 года назад
Excellent! Thank you!
@RaghavPal
@RaghavPal 2 года назад
Most welcome Nikola
@venkataveeragoni1940
@venkataveeragoni1940 3 года назад
Thanks for your video. I have a complex xsd file. Is that a possibility to generate xml file out of it.
@RaghavPal
@RaghavPal 3 года назад
Hi Venkata, you will find tools online that can convert XML to XSD. Cannot say how complex files it can handle, Can check www.liquid-technologies.com/online-xml-to-xsd-converter www.freeformatter.com/xsd-generator.html
@rarogcmex
@rarogcmex Год назад
Hello from Russia! Thank you for gentle introduction.
@RaghavPal
@RaghavPal Год назад
Most welcome
@ludgerhaming733
@ludgerhaming733 4 месяца назад
Greatfull explained !
@RaghavPal
@RaghavPal 4 месяца назад
Thanks a lot Ludger
@Mohamed-uf5jh
@Mohamed-uf5jh Год назад
A good short concept tanks !
@RaghavPal
@RaghavPal Год назад
Most welcome
@aloysiusthomas6536
@aloysiusthomas6536 10 месяцев назад
very helpfull and simple
@RaghavPal
@RaghavPal 10 месяцев назад
Glad it helped Aloysius
@gayatri5397
@gayatri5397 3 года назад
Hi Raghav, thank you so much. I found the video very helpful.
@RaghavPal
@RaghavPal 3 года назад
Glad it was helpful Gayatri
@zakisalim8272
@zakisalim8272 2 года назад
TY sir, that was so helpful
@RaghavPal
@RaghavPal 2 года назад
most welcome Zaki
@riccarrasquilla379
@riccarrasquilla379 2 месяца назад
thanks for the review
@RaghavPal
@RaghavPal 2 месяца назад
Most welcome
@Flowerhorn1108
@Flowerhorn1108 3 года назад
thank you !
@RaghavPal
@RaghavPal 3 года назад
You're welcome Chin
Далее
XSLT Beginner Tutorial with Demo
14:56
Просмотров 213 тыс.
XML Schema Definition Tutorial
1:15:32
Просмотров 40 тыс.
Почему?
00:22
Просмотров 344 тыс.
How to design a modern CI/CD Pipeline
9:59
Просмотров 134 тыс.
Microservices explained - the What, Why and How?
18:30
Просмотров 862 тыс.
Learn JSON Step-by-Step from Scratch
13:11
Просмотров 106 тыс.
Learn JSON in 10 Minutes
12:00
Просмотров 3,2 млн
1. XSD Overview: Why use XSD? What is a simple type?
12:12
What is XPath | How to create XPath | for Beginners
10:53
How I Would Learn to be a Data Analyst
12:30
Просмотров 1,5 млн