How to find all guide IDs and pages with IMG tags in XML export with lxml/xpath?
问题 How can I parse the below XML in order to find for each GUIDE, it's ID and UL, then for each PAGE inside GUIDE, the page ID and any images that appear inside BOXES / BOX / ASSETS / DESCRIPTION? The images are in HTML format so I need to grab the source from each image. <guide> <id></id> <url></url> <group> <id></id> <type></type> <name></name> </group> <pages> <page> <id></id> <name></name> <description></description> <boxes> <box> <id></id> <name></name> <type></type> <map_id></map_id>