Skip to content

Conversation

@memowe
Copy link

@memowe memowe commented Nov 19, 2025

There are two methods,

The first creates a lxml.etree tree and stringifies it, the second writes the stringified tree to a file. I added a new to_pagexml_tree method, that exposes the tree (which we often need). to_pagexml_string uses the new tree method to avoid code duplication.

I added no tests to be consistent with the current test suite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant