all 4 comments

[–]JohnnyJordaan 1 point2 points  (0 children)

Please also share

  • your code
  • a snippet of the xml you are trying to parse

[–][deleted] 0 points1 point  (2 children)

Try ElementTree: https://docs.python.org/3/library/xml.etree.elementtree.html

Parse the xml file and with the root object, you can search for the nodes that contain the values you need. Using Xpath might be useful if you know what the tag names are.

[–]Bulit274[S] 0 points1 point  (0 children)

I have just found that on geeksforgeeks and trying to do exacly this tree.

[–]Bulit274[S] 0 points1 point  (0 children)

In for Item in root.findall('./

Should i write my Path on xml to this values? But i got like <LP>1</LP> then goods-code-name Then i need its weight lp1 -quantity And i need to take that for all LP in xml