Skip to content

A very handy small script utilizing the lxml python library in order to quickly get the xpath of any element in an xml tree.

Notifications You must be signed in to change notification settings

amir511/xml-path-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

xml-path-generator

A very handy small script utilizing the lxml python library in order to quickly get the xpath of any element in an xml tree.

Will save you a lot of precious time when you are inheriting Odoo modules, As xml views inheritance heavily depends on xpath insertion.

usage: create 'xml_file.xml' file in the same directory and paste the xml tree.

put a tag in the place you wish to get the xpath.

run the script, you will notice the here tag xpath is highlighted in red.

  • Dependencies:

    • colorama

    • termcolor

About

A very handy small script utilizing the lxml python library in order to quickly get the xpath of any element in an xml tree.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages