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.
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!
Hi Raghav, I truly believe that UA-cam 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 👏👏
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
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.
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.🙂🙂💔
just now completed watching all your videos really helpful sir. Great teacher in YT history making complex topics in to simple manner. Respect to your efforts can't stop thanking you...........
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 :)
Excellent learning videos. I wish there is a way, where you can give us small, small exercise or practice problems and solutions after we are done. This is like learning 'how to drive a car', but unless and until we are not challenged with a quiz, we won't be able to learn.
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!!!
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
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.
@@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
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.
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.
I am so humbled to read this.. Thanks a lot.
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!
Most welcome
Hi Raghav, I truly believe that UA-cam 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 👏👏
I am so happy and humbled to see this message Gianluca
Well said. Fr
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
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.
Thanks for the kind words Mark
Thanks raghav, spent 1 hr to understand xsd through online documents, kuch palle nahi pada. Aapne 10 min me samjhadiya... thankyou 😊
So happy to know this
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.🙂🙂💔
So happy & humbled to see your message Rehab
This comment is hilarious
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.
So happy to know
I WATCHED THREE VIDEOS ON THIS TOPIC BUT THE ONE YOU SAID IS MORE CLEAR AND COMARING WITH DTD MAKES ME MORE CLEAR
So happy to know this helped Ashok
just now completed watching all your videos really helpful sir. Great teacher in YT history making complex topics in to simple manner. Respect to your efforts can't stop thanking you...........
Most welcome and thanks for the kind words Nikhil. Humbled
You are truly amazing. I’m currently in my MSHCI program and this has help me immensely. Thank you so much!!!!
So glad to know this helped Fallon
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 :)
You're very welcome Shagufta
Hi Raghav ji, Your way of teaching is awesome. Even non Technical people can also understand very easily. Thank you so much
So nice of you Hari
You described it better than my lecturer for 6h broski. Thank mate!
Glad it helped Brooks.. keep learning
Great Explanation. Absolutely loved it.
Also Thank you sir for showing us all the available online websites for practicing.
Most welcome
This is a really great into to XML / XSD. Many thanks for such a clear and succinct presentation.
Most welcome
Very nice into to XSD for a dev who has somehow managed to avoid it for years, thanks!
So happy to know this Robyn
Hello from Russia! Thank you for gentle introduction.
Most welcome
sir it'sa great explanation you are the only one by whom's video i understood it very clearly thank you so much
So nice of you
Short and precise
Crystal clear explanation sir
Thank you so much
You are most welcome Anisa
@@RaghavPal 🤩
Absolutely on point and very well defined. Thankyou for making it simpler for me
You're very welcome Aamir
Thanku sir nearly watched 3 videos but only u made me understand..
so happy to know it helped Deeba
Amazing explanation with a friendly and sweet voice
Thanks a lot Yugeen
The way you teach is excellent. Thanks Raghav👍
Thanks and welcome Ajay
very simple teaching, easily understood by all. good work!
Glad it was helpful Deepa
Thanks Raghav. Great teacher you are.
So nice of you Madhavan
This xml playlist was very useful sir
Thank you
Most welcome Santhosh
The best example ive watched and ive watched a lot
humbled to see this Aidan
you deserve millions of views for explanation like this...thanks a lot sir
Most welcome Daman
Excellent Raghav, very crisp course.
Thanks Arunesh
thank you so much for saving my time of reading very loooong slides of the university course
Most welcome Eva
Thank you sooo much for this great XML series 👍🏻👍🏻👍🏻
Most welcome Apurva
Thank you Raghav. Very clear explanation!
Thanks for this simple yet very useful video (the links to the files is a great detail)
You're very welcome Antoine
Mr.Raghav thanks for this lecture. It's very helpful for my exam preparation and also it reduced my prep time also.❤
Great to know this Vignesh
Thanks for introducing these two validating websites! very useful to check the syntax for beginner
Most welcome
Thank you King! Best tutorial ever!
You're welcome!
Thank you Raghav, great course and well thought out and presented.
Most welcome Stephen
Well presented and informative, even to the untrained this video is very useful. Thank you so much for sharing
Most welcome Keith
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. 🙏
Glad it was helpful Manjunath
Thanks Raghav, its simple and neat, easy to understand.
Most welcome Ramesh
Hi Raghav, really informative, clear and well presentation, thank you!
Most welcome Keith
Excellent video...thank you so much, this is exactly what I was looking for. I will definitely go through your other videos too.
Glad it was helpful Supriyo
Thank You! Refreshingly precise explanation.
You are welcome Carl
Чувак спасибо тебе огромное, ты просто лучший. Если бы каждый человек на планете объяснял как делаешь это ты мы бы жили в удивительном мире
Большое спасибо за добрые слова
You are very good teacher. It helps me a lot.
You are welcome Tsion
Very quick and crisp demo.
Thanks
Exactly what I needed, thank You!
You're welcome!
Hi Raghav. It was a very short and useful video. Very nice.
Thanks Sarva
Simple and great explanation, Thank you Raghav..
Most welcome Ajith
one of the best video on xml
Thanks Aman
you saved my life, and my sleep by the same occasion ty
So happy to know Tomas
Fantastic series on XML! Exactly what I was looking for!
Glad it was helpful!
This was a excellent explanation. It was very clear and to the point.
Subbed!
Welcome aboard!
Best best super best video all over the world thank uuuuu very very much 💕💕💕
Most welcome Bhawana
Thank you Sir . My sincere gratitude for this video❤
Glad it was helpful Vivek
XML made easy - thank you for your explanation!
Most welcome Ashraful
Thank you. You explained it to me very well. You're doing a brilliant job
You're very welcome Ilona
very clear!! Please keep making videos and continue the good work!
Thank you! Will do!
Crystal clear.. nice explanation
Glad it was helpful!
Thanks a lot Raghav.. Very well taught..
Most welcome
Thank you very much. God bless you. You are Great Teacher
You are very welcome
Your tutorial helped me and others, thank you 🙂
You're welcome Sergi
very clear explanation my friend, thank you
Most welcome
Great introduction! I wish you included a bit about ``.. This seems to only cover too little.
Scott
I will plan more videos and cover this
An excellent video: short and clear. Thx!
Thanks
Hi Raghav, thank you so much. I found the video very helpful.
Glad it was helpful Gayatri
Thank you so much for this video....pls make more videos like it ....with different formats as well
I will try my best Ankit
very clear explanation. want a tutorial on DTD also.
Thanks.. noted Yash
Excellent learning videos. I wish there is a way, where you can give us small, small exercise or practice problems and solutions after we are done. This is like learning 'how to drive a car', but unless and until we are not challenged with a quiz, we won't be able to learn.
I will do this
great example, and easy for understanding the basics
Glad you liked it
great explanation ..keep continuing ..even a beginner can get the hang of it. Thank you
Most welcome Dipika
Thank you for the clear explanation sir.
You are welcome
thank you ssssssooooooomuch... Very helpful.
God Bless you.
I've been struggling on this understanding and got a useful video
You are very welcome Rahul
Amazing quality video
Thanks
Its Amazing. So nicely Explained
Thanks and welcome Purushottam
Thank you for making it more easier 😊
Most welcome
Very clear explanation, thank you!
Most welcome
Great sessions brother😀
Thanks for the visit
Thanks so much! Really clear and helpful. And thanks a lot for showing the online tools, I didn’t know about them.
Most welcome
Brilliant video. Thanks Raghav!
Most welcome
@@RaghavPal helpfull in my lab programs ...thank you..keep sharing
Fantastic tutorial!
Thanks Marium
Thank you for this helpful explanation!
Most welcome Kathryn
Thank you so much🙂 this is very useful lecture
Most welcome!
thank u, it helped me a lot...i was getting erros about it.
Glad to know this Azide
Thanks for the whole playlist
You're welcome 😊
Thanks so much for your kind help, and taking the time to do this amazing and helpful video
Glad it was helpful!
Very straight on point, thank you for the video
Most welcome
thanks for the video... very clear and useful.
You are welcome Oscar
Very nicely explained.
Glad it was helpful!
Very well explained. Thank you and well done!
Glad it was helpful!
Please keep up the awesome work!
Thanks a lot
Very good explanation
Thanks Prakash
Рагав ты крутой) респект тебе бро 😎
Большое спасибо
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!!!
Great to know. I will plan more sessions in some time, If you want to learn more can check my tutorials here - automationstepbystep.com/
Best explanation ❤
Thanks Anchal
simple and clean tutorial.
Thanks for watching Aditya
Amazing! I really could underestand! thanks
Glad it helped Mariana
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
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.
@@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
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.
A good short concept tanks !
Most welcome
so useful tutorial of xml, thank u
You are welcome Pankaj