View Single Post
Old 08-08-2019, 12:00 PM   #17
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,734
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by DiapDealer View Post
This plugin prints xml snippet that bk.getmetadata() returns, prints the soup made from that snippet, adds the dc:lang entry if not present, serializes and prints the soup, then ultimately writes the xml snippet back with bk.setmetadata().

You'll note that at no point in the process do any html or body tags get added.
Thanks for the code! You might want to add it to the Sigil API Framework documentation, because LXMLTreeBuilderForXML is somewhat "underdocumented."
Doitsu is offline   Reply With Quote