Expand description
Re-exports§
pub use serde_json;
pub use xmltree;
Structs§
- Element
- Represents an XML element.
- Passage
- Representation of a passage in a Story.
- Story
- An in-memory representation of a Twine story.
Enums§
- Error
- Possible parsing errors.
- Parse
Error - Errors that can occur parsing XML
- Warning
- Possible warnings during parsing.
Per specification, the parser is quite generous and generates many things as warnings instead of errors. - XMLNode
Functions§
- parse_
archive - Parses a Twine archive, a list of <tw-storydata> tags, into a list of Storys.
- parse_
html - Parses a published Twine HTML file into a Story, looking for a <tw-storydata> tag.
- parse_
twee3 - Parses Twee3 into a Story.
- serialize_
html - Serializes a Story into a <tw-storydata> tag.
- serialize_
twee3 - Serializes a Story into Twee3.