Skip to main content

Module document

Module document 

Source
Expand description

The design document: the XML tree inside a .ork, kept whole.

OpenRocket publishes no schema for .ork (there is no XSD), and every version has added tags. So the document is read into a plain tree of elements and text, with nothing thrown away and nothing interpreted: later milestones walk it into hpr_design types, and whatever they do not understand is still here to be written back out. Reading and writing are exact inverses: Document::to_xml followed by Document::parse returns the same document.

Structs§

Document
A design document: its schema version, the program that wrote it, and the whole XML tree.
Element
An XML element: its name, its attributes in the order they were written, and its children.
SchemaVersion
A .ork schema version, as written in the root element’s version attribute.

Enums§

Node
A child of an Element: another element, or text.

Constants§

MAX_DEPTH
How deeply elements may nest before the document is refused.
MAX_KNOWN_MINOR
The .ork schema versions this reader knows, as 1.0 up to and including 1.MAX_KNOWN_MINOR.