Quote:
Originally Posted by DiapDealer
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."