Skip to content

File format specification #1011

Answered by vkbo
peter88213 asked this question in Q&A
Mar 8, 2022 · 2 comments · 15 replies
Discussion options

You must be logged in to vote

The order of the content in the XML is the linear order of items in the project tree from top to bottom. Linear meaning it ignores the parent/child hierarchy (column number) and follows the row number. You can rely on this being the case when novelWriter writes the XML. However, the parent reference is needed in order to re-create the tree structure when the project is loaded, otherwise it would end up as a flat list. The order attribute is presently redundant though. It is mostly written to the XML for debug purposes.

The algorithm that loads the project tree is able to handle cases where the content entries in the file have been re-ordered or appear in the wrong order from a hierarchica…

Replies: 2 comments 15 replies

Comment options

You must be logged in to vote
3 replies
@peter88213
Comment options

@vkbo
Comment options

vkbo Mar 8, 2022
Maintainer

@vkbo
Comment options

vkbo Nov 17, 2022
Maintainer

Answer selected by peter88213
Comment options

You must be logged in to vote
12 replies
@vkbo
Comment options

vkbo Dec 11, 2022
Maintainer

@peter88213
Comment options

@vkbo
Comment options

vkbo Dec 11, 2022
Maintainer

@peter88213
Comment options

@peter88213
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants