View Single Post
Old 04-13-2020, 09:29 AM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,839
Karma: 207000000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Pretty good discussion here on parsing/serializing the metadata fragment as pure xml with sigil_bs4.Beautiful soup.

And as mentioned in that discussion, /src/Resource_Files/python3lib/xmlprocessor.py in the Sigil source code (or Program Files\python3lib\xmlprocessor.py in a Windows Sigil installation) has examples on how to parse pure xml with bs4.
DiapDealer is offline   Reply With Quote