#100 | Reading XMl files using Element Tree in Python | Python Tutorial in Tamil

preview_player
Показать описание
ElementTree presents us with an very simple way to process XML files. As always, in order to use it we must first import the module. In our code we use the import command with the as keyword, which allows us to use a simplified name (ET in this case) for the module in the code.

Following the import, we create a tree structure with the parse function, and we obtain its root element. Once we have access to the root node we can easily traverse around the tree, because a tree is a connected graph.

Using ElementTree, and like the previous code example, we obtain the node attributes and text using the objects related to each node.











__________________________________________________
like our face book page..
--------------------------------------------------------------------------------
send request our channel official facebookprofile...
---------------------------------------------------------------------------------

#santratechspot
Рекомендации по теме
Комментарии
Автор

your explanation super bro ...easily understood ...xml using dom and sax parse eduththingana innum usefull ah irukum bro

bharathic
Автор

publish more videos on XML handing . thank you

ashokkumarmva
welcome to shbcf.ru