title
Python XML Parser Tutorial | Read and Write XML in Python | Python Training | Edureka

description
** Python Certification Training: https://www.edureka.co/python ** This Edureka video on 'Python XML Parser Tutorial' is to educate you about parsing and modifying XML in Python. Below are the topics covered in this video: Introduction to xml and parsing Python xml parsing modules xml.etree.ElementTree module xml.dom.minidom module Python Tutorial Playlist: https://goo.gl/WsBpKe Blog Series: http://bit.ly/2sqmP4s #Edureka #PythonEdureka #PythonXMLParserTutorial #pythonProgramming #pythonTutorial #PythonTraining Do subscribe to our channel and hit the bell icon to never miss an update from us in the future: https://goo.gl/6ohpTV Instagram: https://www.instagram.com/edureka_learning/ Facebook: https://www.facebook.com/edurekaIN/ Twitter: https://twitter.com/edurekain LinkedIn: https://www.linkedin.com/company/edureka ----------------------------------------------------------------------------------------------------------- How it Works? 1. This is a 5 Week Instructor-led Online Course,40 hours of assignment and 20 hours of project work 2. We have a 24x7 One-on-One LIVE Technical Support to help you with any problems you might face or any clarifications you may require during the course. 3. At the end of the training, you will be working on a real-time project for which we will provide you a Grade and a Verifiable Certificate! - - - - - - - - - - - - - - - - - About the Course Edureka's Python Online Certification Training will make you an expert in Python programming. It will also help you learn Python the Big data way with integration of Machine learning, Pig, Hive and Web Scraping through beautiful soup. During our Python Certification training, our instructors will help you: 1. Master the Basic and Advanced Concepts of Python 2. Understand Python Scripts on UNIX/Windows, Python Editors and IDEs 3. Master the Concepts of Sequences and File operations 4. Learn how to use and create functions, sorting different elements, Lambda function, error handling techniques and Regular expressions ans using modules in Python 5. Gain expertise in machine learning using Python and build a Real Life Machine Learning application 6. Understand the supervised and unsupervised learning and concepts of Scikit-Learn 7. Master the concepts of MapReduce in Hadoop 8. Learn to write Complex MapReduce programs 9. Understand what is PIG and HIVE, Streaming feature in Hadoop, MapReduce job running with Python 10. Implementing a PIG UDF in Python, Writing a HIVE UDF in Python, Pydoop and/Or MRjob Basics 11. Master the concepts of Web scraping in Python 12. Work on a Real Life Project on Big Data Analytics using Python and gain Hands on Project Experience - - - - - - - - - - - - - - - - - - - Why learn Python? Programmers love Python because of how fast and easy it is to use. Python cuts development time in half with its simple to read syntax and easy compilation feature. Debugging your programs is a breeze in Python with its built in debugger. Using Python makes Programmers more productive and their programs ultimately better. Python continues to be a favorite option for data scientists who use it for building and using Machine learning applications and other scientific computations. Python runs on Windows, Linux/Unix, Mac OS and has been ported to Java and .NET virtual machines. Python is free to use, even for the commercial products, because of its OSI-approved open source license. Python has evolved as the most preferred Language for Data Analytics and the increasing search trends on python also indicates that Python is the next "Big Thing" and a must for Professionals in the Data Analytics domain. Who should go for python? Edureka’s Data Science certification course in Python is a good fit for the below professionals: · Programmers, Developers, Technical Leads, Architects · Developers aspiring to be a ‘Machine Learning Engineer' · Analytics Managers who are leading a team of analysts · Business Analysts who want to understand Machine Learning (ML) Techniques · Information Architects who want to gain expertise in Predictive Analytics · 'Python' professionals who want to design automatic predictive models For more information, Please write back to us at sales@edureka.in or call us at IND: 9606058406 / US: 18338555775 (toll free)

detail
{'title': 'Python XML Parser Tutorial | Read and Write XML in Python | Python Training | Edureka', 'heatmap': [{'end': 456.706, 'start': 408.754, 'weight': 0.734}, {'end': 704.21, 'start': 628.874, 'weight': 0.743}], 'summary': "This tutorial covers the basics of parsing xml using python, including an introduction to xml, parsing modules, and xml manipulation, with practical examples and quantifiable data. it also demonstrates passing xml using python's elementary module, showcasing methods and retrieval of elements, attributes, sub-elements, and text.", 'chapters': [{'end': 129.86, 'segs': [{'end': 101.913, 'src': 'embed', 'start': 30.091, 'weight': 0, 'content': [{'end': 38.452, 'text': 'Then we shall take a look at the python parsing modules, namely elementary module and the mini Dom module, and how you can make use of these to parse,', 'start': 30.091, 'duration': 8.361}, {'end': 40.573, 'text': 'modify or look for data of your interest.', 'start': 38.452, 'duration': 2.121}, {'end': 43.453, 'text': "So I hope everyone's ready to start with this.", 'start': 41.633, 'duration': 1.82}, {'end': 46.694, 'text': 'Just give me a quick confirmation at the chat box guys.', 'start': 44.374, 'duration': 2.32}, {'end': 64.316, 'text': "Okay, I see many of your responses, So, without any further dues, let's get started by understanding what exactly is XML.", 'start': 56.596, 'duration': 7.72}, {'end': 66.837, 'text': 'XML stands for extensible markup language.', 'start': 64.316, 'duration': 2.521}, {'end': 76.724, 'text': 'It is similar to HTML in its appearance, but XML is used for data presentation, while HTML is used to define what data is being used.', 'start': 67.318, 'duration': 9.406}, {'end': 82.508, 'text': 'XML is exclusively designed to send and receive data back and forth between clients and servers.', 'start': 76.724, 'duration': 5.784}, {'end': 86.349, 'text': 'Now just to show you all how data looks in the XML format.', 'start': 83.408, 'duration': 2.941}, {'end': 91.29, 'text': "Let me jump on to pie charm and show you the sample file that I'll be using in this session today.", 'start': 86.789, 'duration': 4.501}, {'end': 98.012, 'text': 'So, as you all can see on the screen, it basically begins with a less than symbol, a question mark symbol,', 'start': 92.47, 'duration': 5.542}, {'end': 101.913, 'text': "followed by XML version and the type of encoding that's being used.", 'start': 98.012, 'duration': 3.901}], 'summary': 'Introduction to xml parsing in python, understanding xml, its purpose, and data format.', 'duration': 71.822, 'max_score': 30.091, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/r6dyk68gymk/pics/r6dyk68gymk30091.jpg'}], 'start': 7.901, 'title': 'Parsing xml with python', 'summary': 'Covers the basics of parsing xml using python, including an introduction to xml, parsing modules like elementary module and mini dom module, and the structure of xml data. xml is exclusively designed for data presentation, and the session demonstrates how to parse, modify, or look for data of interest using python modules.', 'chapters': [{'end': 129.86, 'start': 7.901, 'title': 'Parsing xml with python', 'summary': 'Covers the basics of parsing xml using python, including an introduction to xml, parsing modules like elementary module and mini dom module, and the structure of xml data. xml is exclusively designed for data presentation, and the session demonstrates how to parse, modify, or look for data of interest using python modules.', 'duration': 121.959, 'highlights': ['XML stands for extensible markup language, exclusively designed for sending and receiving data between clients and servers. XML is designed for data presentation and exchange between clients and servers, distinct from HTML.', 'Introduction to parsing modules in Python, namely elementary module and mini Dom module, and their use in parsing, modifying, or looking for data of interest. The chapter introduces parsing modules like elementary module and mini Dom module in Python and their use in parsing, modifying, or looking for data.', 'Demonstration of the structure of XML data and its tags, including the root element and child elements, with a sample file showcased in pie charm. The session demonstrates the structure of XML data, including root and child elements, and showcases a sample XML file in pie charm.']}], 'duration': 121.959, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/r6dyk68gymk/pics/r6dyk68gymk7901.jpg', 'highlights': ['XML is designed for data presentation and exchange between clients and servers, distinct from HTML.', 'The chapter introduces parsing modules like elementary module and mini Dom module in Python and their use in parsing, modifying, or looking for data.', 'The session demonstrates the structure of XML data, including root and child elements, and showcases a sample XML file in pie charm.']}, {'end': 725.904, 'segs': [{'end': 210.64, 'src': 'embed', 'start': 151.453, 'weight': 0, 'content': [{'end': 157.335, 'text': "I'll be making use of the elementary and the mini Dom module to parse XML using Python.", 'start': 151.453, 'duration': 5.882}, {'end': 164.979, 'text': 'the elementary module helps us format XML data in a tree structure, which is the most natural representation of hierarchical data.', 'start': 157.335, 'duration': 7.644}, {'end': 170.103, 'text': 'The element data type allows storage of hierarchical data structures in memory.', 'start': 165.862, 'duration': 4.241}, {'end': 178.004, 'text': 'The mini Dom module is basically used by people who are proficient with Dom or the document object module.', 'start': 170.923, 'duration': 7.081}, {'end': 181.405, 'text': 'Dom applications often start by parsing XML into Dom.', 'start': 178.004, 'duration': 3.401}, {'end': 189.646, 'text': "Okay Now, let's move on to take a deeper look at these modules beginning with the elementary module as mentioned earlier.", 'start': 182.405, 'duration': 7.241}, {'end': 193.327, 'text': 'This module helps format XML data in a tree structure.', 'start': 190.026, 'duration': 3.301}, {'end': 202.014, 'text': 'Elementary is a class that wraps the element structure and allows conversion to and from XML and it has the following properties.', 'start': 194.128, 'duration': 7.886}, {'end': 210.64, 'text': "So, basically, each element that's present in the elementary module will consist of a tag that describes the type of data being stored,", 'start': 202.794, 'duration': 7.846}], 'summary': 'Using elementary and mini dom modules to parse xml using python.', 'duration': 59.187, 'max_score': 151.453, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/r6dyk68gymk/pics/r6dyk68gymk151453.jpg'}, {'end': 263.346, 'src': 'embed', 'start': 234.877, 'weight': 3, 'content': [{'end': 239.398, 'text': "So first, let's take a look at how to pass XML using the elementary module.", 'start': 234.877, 'duration': 4.521}, {'end': 242.499, 'text': 'There are two ways to pass a file using this module.', 'start': 240.098, 'duration': 2.401}, {'end': 248.72, 'text': 'The first is by using the pass function and the second is to use the from string function.', 'start': 243.319, 'duration': 5.401}, {'end': 252.801, 'text': 'the pass function passes an XML document which is supplied to it as a file.', 'start': 248.72, 'duration': 4.081}, {'end': 256.661, 'text': "Now, let's jump on to PyCharm to see how exactly this works.", 'start': 253.82, 'duration': 2.841}, {'end': 258.903, 'text': "I'll create a new file.", 'start': 257.923, 'duration': 0.98}, {'end': 263.346, 'text': "I'll just name it as example.", 'start': 262.186, 'duration': 1.16}], 'summary': 'Demonstrates two ways to pass xml using elementary module.', 'duration': 28.469, 'max_score': 234.877, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/r6dyk68gymk/pics/r6dyk68gymk234877.jpg'}, {'end': 362.796, 'src': 'embed', 'start': 339.235, 'weight': 4, 'content': [{'end': 346.321, 'text': 'So as you all can see over here when I use the get root method it has returned the root element of my file, which is metadata.', 'start': 339.235, 'duration': 7.086}, {'end': 352.407, 'text': 'So this is how you can pass an XML file by passing it as a parameter to the pass function.', 'start': 347.282, 'duration': 5.125}, {'end': 360.935, 'text': 'Now in case you want to pass your XML data as a string in this case, you can make use of the from string method to do this.', 'start': 353.128, 'duration': 7.807}, {'end': 362.796, 'text': "I'll just create a new python file.", 'start': 361.095, 'duration': 1.701}], 'summary': 'Demonstrates using get root method to retrieve root element of xml file and passing xml data as a parameter or string.', 'duration': 23.561, 'max_score': 339.235, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/r6dyk68gymk/pics/r6dyk68gymk339235.jpg'}, {'end': 456.706, 'src': 'heatmap', 'start': 408.754, 'weight': 0.734, 'content': [{'end': 415.136, 'text': "And then I'll say my root is equal to et dot from string.", 'start': 408.754, 'duration': 6.382}, {'end': 419.357, 'text': "And I'll pass data as the parameter to this.", 'start': 416.936, 'duration': 2.421}, {'end': 421.178, 'text': 'Sorry guys.', 'start': 420.758, 'duration': 0.42}, {'end': 422.558, 'text': "I've made a spelling mistake of here.", 'start': 421.198, 'duration': 1.36}, {'end': 431.212, 'text': "I have to use et dot from string and then I'll print my root Dot tag.", 'start': 422.858, 'duration': 8.354}, {'end': 442.238, 'text': 'As you all can see my string has been passed and the tag of the root element has been returned which is meta data.', 'start': 436.415, 'duration': 5.823}, {'end': 443.919, 'text': "So I hope everyone's clear till here.", 'start': 442.578, 'duration': 1.341}, {'end': 449.042, 'text': 'Okay So in case you have any doubts, please do let me know in the chat box and my team is here to help you.', 'start': 444.72, 'duration': 4.322}, {'end': 456.706, 'text': "So now let's move on and see how you can actually find elements of your interest using the elementary module.", 'start': 451.143, 'duration': 5.563}], 'summary': 'Using et.fromstring to extract metadata from a string and find elements of interest.', 'duration': 47.952, 'max_score': 408.754, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/r6dyk68gymk/pics/r6dyk68gymk408754.jpg'}, {'end': 704.21, 'src': 'heatmap', 'start': 598.488, 'weight': 6, 'content': [{'end': 605.67, 'text': "all the tags and attributes that are present within the food tag have been returned to bring out the text that's present within these tags.", 'start': 598.488, 'duration': 7.182}, {'end': 607.87, 'text': 'You can make use of the text attribute.', 'start': 605.93, 'duration': 1.94}, {'end': 610.951, 'text': 'So to print out the text present in all the tags.', 'start': 608.791, 'duration': 2.16}, {'end': 618.733, 'text': "I'll just use for X in my root of 0.", 'start': 611.071, 'duration': 7.662}, {'end': 624.155, 'text': "I'll just say print X dot text and then I hit run.", 'start': 618.733, 'duration': 5.422}, {'end': 634.195, 'text': "So as you can see all the text that's present within each tag has been returned as my output.", 'start': 628.874, 'duration': 5.321}, {'end': 639.856, 'text': 'So now let me just remove this part.', 'start': 638.356, 'duration': 1.5}, {'end': 647.378, 'text': 'So as to make my output clear now in case I want to find all the items along with its prices.', 'start': 641.556, 'duration': 5.822}, {'end': 649.418, 'text': "I'll use the find all method.", 'start': 647.978, 'duration': 1.44}, {'end': 659.96, 'text': "So for X, in my root dot find all, and I'll specify the keyword as food,", 'start': 649.898, 'duration': 10.062}, {'end': 669.484, 'text': "since I want to loop through all the food tags and specify food as a parameter to this, and then I'll just take another variable, say item,", 'start': 659.96, 'duration': 9.524}, {'end': 671.064, 'text': "and I'll use X dot find.", 'start': 669.484, 'duration': 1.58}, {'end': 677.967, 'text': 'So this time I want to print out the item name which in the first case is idly.', 'start': 673.485, 'duration': 4.482}, {'end': 684.129, 'text': 'So I want to find the items in this in the food tag.', 'start': 680.888, 'duration': 3.241}, {'end': 689.82, 'text': "I want to retrieve the item So I'll just use find the text that's present in item.", 'start': 684.269, 'duration': 5.551}, {'end': 695.124, 'text': "And since I want to print the price as well, I'll take another variable as price.", 'start': 691.161, 'duration': 3.963}, {'end': 700.488, 'text': "And then I'll say X dot find price.", 'start': 696.545, 'duration': 3.943}, {'end': 704.21, 'text': "And I'll print the text in this.", 'start': 703.03, 'duration': 1.18}], 'summary': 'Demonstrating how to extract and print text and prices from food tags using python code.', 'duration': 61.472, 'max_score': 598.488, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/r6dyk68gymk/pics/r6dyk68gymk598488.jpg'}], 'start': 130.562, 'title': 'Python xml parsing and passing using elementary module', 'summary': "Discusses parsing xml using python, focusing on elementary and mini dom modules. it also demonstrates passing xml using python's elementary module, showcasing methods and retrieval of elements, attributes, sub-elements, and text.", 'chapters': [{'end': 233.917, 'start': 130.562, 'title': 'Python xml parsing', 'summary': 'Discusses parsing xml using python, highlighting the elementary and mini dom modules, with a focus on the properties and usage of the elementary module for parsing and modifying xml documents.', 'duration': 103.355, 'highlights': ['The elementary module in Python is used to format XML data in a tree structure, allowing storage of hierarchical data structures in memory.', 'The elementary module consists of elements with properties like tag, attributes, text string, tail string, and child elements, facilitating parsing and modification of XML documents.', 'The mini Dom module in Python is preferred for proficient users of Dom, with applications often starting by parsing XML into Dom.']}, {'end': 725.904, 'start': 234.877, 'title': "Passing xml using python's elementary module", 'summary': "Demonstrates how to pass xml using python's elementary module, showcasing two methods - pass function and from string function, along with retrieving the root element, finding elements, attributes, sub-elements, and text from xml data.", 'duration': 491.027, 'highlights': ["The chapter demonstrates how to pass XML using Python's elementary module through two methods - pass function and from string function, with a demonstration of passing an XML document as a file and as a string.", 'The process of passing an XML file using the pass function is showcased, with the demonstration of fetching the root element of the file using the get root method.', 'The method of passing XML data as a string using the from string method is illustrated, including the demonstration of fetching the root element from the XML string and printing the tag of the root element.', 'The chapter explains how to find elements and sub-elements of interest, including printing the tag of the root element, the first child of the root element, and all the tags and attributes within the food tag, as well as retrieving the text present within each tag.', 'The demonstration of using the find all method to find all the items along with their prices within the XML data is provided, showcasing the retrieval of item names and their respective prices from the food tag.']}], 'duration': 595.342, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/r6dyk68gymk/pics/r6dyk68gymk130562.jpg', 'highlights': ['The elementary module in Python is used to format XML data in a tree structure, allowing storage of hierarchical data structures in memory.', 'The elementary module consists of elements with properties like tag, attributes, text string, tail string, and child elements, facilitating parsing and modification of XML documents.', 'The mini Dom module in Python is preferred for proficient users of Dom, with applications often starting by parsing XML into Dom.', "The chapter demonstrates how to pass XML using Python's elementary module through two methods - pass function and from string function, with a demonstration of passing an XML document as a file and as a string.", 'The process of passing an XML file using the pass function is showcased, with the demonstration of fetching the root element of the file using the get root method.', 'The method of passing XML data as a string using the from string method is illustrated, including the demonstration of fetching the root element from the XML string and printing the tag of the root element.', 'The chapter explains how to find elements and sub-elements of interest, including printing the tag of the root element, the first child of the root element, and all the tags and attributes within the food tag, as well as retrieving the text present within each tag.', 'The demonstration of using the find all method to find all the items along with their prices within the XML data is provided, showcasing the retrieval of item names and their respective prices from the food tag.']}, {'end': 1676.131, 'segs': [{'end': 808.56, 'src': 'embed', 'start': 750.195, 'weight': 0, 'content': [{'end': 754.258, 'text': "So as you all can see on the screen to do this, I'll be making use of the set method.", 'start': 750.195, 'duration': 4.063}, {'end': 760.683, 'text': "Now, let's get back to pycharm and try to modify the file that's already present which is sampled at XML.", 'start': 755.279, 'duration': 5.404}, {'end': 768.508, 'text': 'Now in case I want to add on some more description to this description tag.', 'start': 764.625, 'duration': 3.883}, {'end': 777.212, 'text': "All I have to do is use the for loop and then I'll say for X in my root dot ETA.", 'start': 769.429, 'duration': 7.783}, {'end': 782.174, 'text': 'And then I want to iterate over the description tag.', 'start': 779.293, 'duration': 2.881}, {'end': 787.736, 'text': "I'll just take a variable that will store the new description.", 'start': 785.095, 'duration': 2.641}, {'end': 799.24, 'text': "And to this since the data is in string format, I'll have to pass a string to this and to the text of this description.", 'start': 790.297, 'duration': 8.943}, {'end': 808.56, 'text': 'I want to add a new part say description has been added and then into X of text.', 'start': 799.975, 'duration': 8.585}], 'summary': 'Using the set method to modify xml file by adding a new description.', 'duration': 58.365, 'max_score': 750.195, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/r6dyk68gymk/pics/r6dyk68gymk750195.jpg'}, {'end': 890.567, 'src': 'embed', 'start': 867.768, 'weight': 1, 'content': [{'end': 876.395, 'text': 'all the description tags have this updated text saying description has been added and a new attribute saying updated and the value being yes,', 'start': 867.768, 'duration': 8.627}, {'end': 879.698, 'text': 'has been added to all the description tags present in this file.', 'start': 876.395, 'duration': 3.303}, {'end': 882.701, 'text': 'with the help of the right function.', 'start': 881.3, 'duration': 1.401}, {'end': 890.567, 'text': 'I was able to create a new XML file and write the updated output to the same you can modify the original file as well.', 'start': 882.961, 'duration': 7.606}], 'summary': 'All description tags updated with new attribute, output written to new xml file.', 'duration': 22.799, 'max_score': 867.768, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/r6dyk68gymk/pics/r6dyk68gymk867768.jpg'}, {'end': 1051.706, 'src': 'embed', 'start': 1017.31, 'weight': 5, 'content': [{'end': 1022.651, 'text': "So now let's move on and see how you can delete attributes or sub elements using the elementary module.", 'start': 1017.31, 'duration': 5.341}, {'end': 1024.472, 'text': 'Let me just clear this.', 'start': 1023.512, 'duration': 0.96}, {'end': 1030.733, 'text': "Now in case I want to remove some attribute that's present in my file.", 'start': 1027.272, 'duration': 3.461}, {'end': 1034.714, 'text': 'So as you all can see I have an attribute to this item tag.', 'start': 1031.074, 'duration': 3.64}, {'end': 1041.416, 'text': 'Now if I want to remove this attribute, all I have to do is make use of the pop function to do this.', 'start': 1035.335, 'duration': 6.081}, {'end': 1051.706, 'text': "I'll say my root and I'll specify the subscript as 0, which will be the first child of the root element, and then I'll specify another subscript,", 'start': 1041.537, 'duration': 10.169}], 'summary': 'Demonstrate how to use pop function to remove attribute or sub-element from xml file.', 'duration': 34.396, 'max_score': 1017.31, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/r6dyk68gymk/pics/r6dyk68gymk1017310.jpg'}, {'end': 1262.153, 'src': 'embed', 'start': 1232.936, 'weight': 3, 'content': [{'end': 1237.939, 'text': 'Now just like the elementary module the minidom module also has two ways to parse your data.', 'start': 1232.936, 'duration': 5.003}, {'end': 1244.524, 'text': 'The first is to make use of the pass function by supplying the XML file to be passed as a parameter to it.', 'start': 1238.56, 'duration': 5.964}, {'end': 1247.106, 'text': 'This also can be done in two ways.', 'start': 1245.244, 'duration': 1.862}, {'end': 1250.528, 'text': 'Let me just get back to PyCharm to show this in detail.', 'start': 1247.766, 'duration': 2.762}, {'end': 1253.688, 'text': "I'll just open a new file since this is a new library.", 'start': 1251.167, 'duration': 2.521}, {'end': 1256.73, 'text': "Let's say new python file.", 'start': 1253.708, 'duration': 3.022}, {'end': 1262.153, 'text': "And I'll say example 3.", 'start': 1258.291, 'duration': 3.862}], 'summary': 'The minidom module has two ways to parse data, using the pass function and demonstrating in pycharm.', 'duration': 29.217, 'max_score': 1232.936, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/r6dyk68gymk/pics/r6dyk68gymk1232936.jpg'}], 'start': 725.924, 'title': 'Xml manipulation in python', 'summary': 'Delves into working with xml in python, covering methods to modify xml files, such as adding a new description through a for loop and the set method, and demonstrating manipulation techniques including adding, updating, and deleting elements, as well as utilizing the minidom module for parsing and finding elements, with an emphasis on practical examples and quantifiable data.', 'chapters': [{'end': 808.56, 'start': 725.924, 'title': 'Working with xml in python', 'summary': 'Explores how to modify an xml file in python using the elementary module, demonstrating the addition of a new description to the existing xml file through a for loop and the set method.', 'duration': 82.636, 'highlights': ['The chapter demonstrates the addition of a new description to an existing XML file using a for loop and the set method.', 'The presenter mentions the use of the set method to modify the XML file.', 'Explains the process of adding a new description to the XML file by iterating over the description tag and using a for loop.']}, {'end': 1676.131, 'start': 810.601, 'title': 'Xml manipulation with python', 'summary': 'Demonstrates manipulating xml files using the elementary module in python, covering methods to add, update, delete elements, and utilize the minidom module for parsing and finding elements in an xml file, with an emphasis on practical examples and quantifiable data.', 'duration': 865.53, 'highlights': ['The chapter demonstrates adding a new attribute and description tags to an XML file using the set method and the subelement method, resulting in the creation of a new file with the updated output. Adding new attributes and description tags, creating a new XML file, using set and subelement methods', 'The process of removing attributes and sub-elements from an XML file is illustrated, utilizing methods like pop, remove, and clear, resulting in the generation of a modified output file with the specified elements removed. Removing attributes and sub-elements, using pop, remove, and clear methods, generating a modified output file', 'Demonstrating the use of the minidom module for parsing XML data, including examples of parsing XML using the parse, parse string, and open file methods, providing practical insights into the various parsing techniques. Using minidom module for parsing XML data, examples of parsing techniques, practical insights']}], 'duration': 950.207, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/r6dyk68gymk/pics/r6dyk68gymk725924.jpg', 'highlights': ['The chapter demonstrates the addition of a new description to an existing XML file using a for loop and the set method.', 'The chapter demonstrates adding a new attribute and description tags to an XML file using the set method and the subelement method, resulting in the creation of a new file with the updated output.', 'Explains the process of adding a new description to the XML file by iterating over the description tag and using a for loop.', 'Demonstrating the use of the minidom module for parsing XML data, including examples of parsing XML using the parse, parse string, and open file methods, providing practical insights into the various parsing techniques.', 'The presenter mentions the use of the set method to modify the XML file.', 'The process of removing attributes and sub-elements from an XML file is illustrated, utilizing methods like pop, remove, and clear, resulting in the generation of a modified output file with the specified elements removed.']}], 'highlights': ['The elementary module in Python is used to format XML data in a tree structure, allowing storage of hierarchical data structures in memory.', "The chapter demonstrates how to pass XML using Python's elementary module through two methods - pass function and from string function, with a demonstration of passing an XML document as a file and as a string.", 'The chapter explains how to find elements and sub-elements of interest, including printing the tag of the root element, the first child of the root element, and all the tags and attributes within the food tag, as well as retrieving the text present within each tag.', 'The demonstration of using the find all method to find all the items along with their prices within the XML data is provided, showcasing the retrieval of item names and their respective prices from the food tag.', 'The chapter demonstrates the addition of a new description to an existing XML file using a for loop and the set method.', 'The chapter demonstrates adding a new attribute and description tags to an XML file using the set method and the subelement method, resulting in the creation of a new file with the updated output.', 'The process of removing attributes and sub-elements from an XML file is illustrated, utilizing methods like pop, remove, and clear, resulting in the generation of a modified output file with the specified elements removed.', 'The presenter mentions the use of the set method to modify the XML file.']}