OHL XML schema#
OHL XML is the whole line model — the content of a line file (.ohl.json) — as XML, for tools that prefer XML. It holds the same data: a file written by OpenOHL and read back gives the same line, number for number.
- Namespace:
urn:openohl:ohl-line:1. - Schema:
docs/schema/ohl-line.xsd(XML Schema 1.0) - Write:
ohl line LINE --export line.xml(formatohl-xml, the default for.xml) or File › Export › The line… in the application. - Read:
ohl import line.xml --out line.ohl.json,ohl project import-file line.xml --into p.ohl --user ann, or File › Import › Into the line… in the application. The reader also recognises LandXML files (rootLandXML, see Import and export).
Rules#
The names are those of the line file:
- An object is an element; its plain values are attributes named like the JSON keys (
orientation_deg,phase_label,voltage_kv…). - A point is three attributes
x,y,z(metres, the line's coordinate system). - A list is repeated child elements in order (
<structure>,<section>,<point>…); number lists (span lengths, stick drawing polylines) are space-separated text. - An absent optional value is an absent attribute; defaults are those of the line file (bundle 1, jumper temperature 15 °C, calculation
initial-fe…). - Numbers are written as the shortest decimal text that reads back to the same value.
- Unknown elements and attributes are refused (as unknown keys are in the line file).
Elements#
<line xmlns="urn:openohl:ohl-line:1" format="ohl-line" version="7" name="…" crs="EPSG:2056"
height_datum="LN02" height_datum_epsg="5728"> <!-- version 7: the heights' datum, optional -->
<route id="main" name="Main route" description="…"/>
<alignment id="alignment 1" name="…" route="main"> <!-- one route -->
<point ref="P1"/> <point ref="P2"/> … <!-- its points, in order -->
</alignment>
<alignment_point id="P1" x="…" y="…" z="…" structure="T1"/> <!-- structure: tied -->
<!-- older files: version 3 <alignment> with <on_route id/> and <point x y z>
inside; version 2 <route> holding its <alignment> and <structure ref>,
and the line's own <alignment> without id: read and converted -->
<structure id="T1" x="…" y="…" z="…" orientation_deg="-90" type="…" extension="…"
height_adjust="0.5" <!-- feet 0.5 m above the ground -->
soil_resistivity_ohm_m="8.5" <!-- soil resistivity measured here, Ω·m -->
earthing_resistance_ohm="6.2" <!-- its earthing (footing), Ω (2026-10-29) -->
no_load_cases="true"> <!-- older files (version 14, until 2026-11-15): it took no load case; read into the group "no load case" -->
<weather_group name="…"/> <!-- its weather case groups (kept, no longer used) -->
<local wind_static="1.2" wind_clearance="0.8" wire_ice="1.5" structure_ice_m="0.02" snow_altitude_m="900"/> <!-- local conditions (2026-11-03; also snow_ground_pa, and wind_study_pa: a wind study's pressure for the internal clearances, 2026-11-04) -->
<load_case name="…"/> <!-- older files (2026-11-03 to 2026-11-15): its own load cases; read into a group picking it -->
<point label="A1" x="…" y="…" z="…"/> <!-- where strings hang -->
<wire label="W1" x="…" y="…" z="…" set="1" weight="…"/> <!-- set: a wire ends here; weight: a counterweight -->
<string label="S1" top="A1" wire="W1" insulator="…" length="…" angle_deg="…" direction_deg="…" weight="…" wind_area="…"
stiffness="…" compression="…" strain="true"
max_load="120000" max_swing_deg="60"
max_swing_across_deg="55" max_swing_along_deg="30"/> <!-- top: a point or a wire; max_*: limits not checked (version 6) -->
<string label="S2" top="A2" wire="W2" insulator="…"> <!-- version 8: its own volumes, over its assembly's by name -->
<shape name="clamp" kind="box" state="electrified" at_fraction="1" width="0.15" depth="0.3" length="0.1"/>
</string>
<omit label="…"/> <omit set="2"/> <!-- typed: the type's left out -->
<!-- files of version 1: <attachment set phase …> with <insulator_point>,
<wire_point>, <leg>; <omit set phase>; section points with a phase -->
<member>x y z x y z …</member> <!-- stick drawing polyline -->
</structure>
<system id="…" name="…" owner="…" number="…" kind="ac" voltage_kv="220" highest_voltage_kv="…" insulation_level="low" frequency_hz="50" current_a="900" color="#e4572e"> <!-- owner, number: the phase plan's table; current_a (version 13): operating current, A per phase; highest_voltage_kv, insulation_level (version 15, both optional): the highest operating voltage, kV, at least voltage_kv — the user's value; "low" or "high" (not given: high) -->
<phase label="L1" angle_deg="0" polarity="1" code=".-"/> <!-- code: line code by system -->
</system>
<circuit id="…" name="North" system="…" description="…"/> <!-- version 7: a circuit; its sections give its name -->
<section id="S1" cable="…" circuit_name="…" phase_label="L1" system="…" bundle="1"
bundle_spacing="…" bundle_rotation_deg="…" color="#rrggbb" calculation="creep-rs">
<weather_group name="…"/> <!-- its weather case groups (kept, no longer used) -->
<wind_factor span="2" factor="1.2"/> <!-- version 9: a local wind, span 0 = the first -->
<point structure="T1" set="1"/> …
<stringing kind="tension" horizontal_tension="25000" temperature="15"/>
<!-- or kind="sag" sag="…" temperature="…" span="…" -->
<!-- or kind="catenary_constant" constant="1500" temperature="…" (version 15): H / w in metres -->
<!-- these three: condition="creep" or "load" (version 15): the value holds after creep / after load,
the initial stringing is worked back from it; none: initial -->
<!-- or kind="unstressed_lengths" temperature="…">
<lengths>300.1 299.9 …</lengths><stringing kind="sag" …/></stringing> -->
<span_point label="M1" span="1" fraction="0.5" description="marker ball"> <!-- or distance="…" or station="…" -->
<object kind="body" type="marker-ball-600" weight="55" shape="sphere" diameter="0.6" drag="1"/>
</span_point>
<span_point label="C1" span="0" distance="40">
<object kind="clamp" weight="30" shape="point" clamp_length="0.25"/> <!-- a tap's or a spacer's clamp -->
<!-- version 16: clamp_for="tap" | "spacer" on a clamp (a tap clamp, a spacer clamp; none: either),
per_subconductor="true" on a body or a clamp (one on each subconductor: its weight, ice and
wind counted on each) -->
<!-- version 15, on a section's span point: force_across="400" force_along="-120" — a constant horizontal
force, N (the whole bundle's): across the span's chord in plan (+ right looking ahead), along it (+ ahead) -->
</span_point>
<span_point label="P1" span="2" fraction="0.2"/> <!-- bare: a spread's end -->
<span_point label="P2" span="2" fraction="0.4"/>
<spread label="heated" from="P1" to="P2" type="heated-stretch" load="12.5"/> <!-- N/m, the whole bundle's;
per_subconductor="true": on each subconductor -->
</section>
<jumper id="…" cable="…" length="…" sag="…" tension="…" temperature="15" bending_stiffness="…" stiffness_factor="…"
angle_from_deg="…" angle_to_deg="…" color="…" bundle="…" bundle_spacing="…"
bundle_rotation_deg="…">
<from structure="T3" set="2"/> <!-- or <from_tap section="S1" point="C1"/>, <from_tap jumper="J2" point="K"/> -->
<to structure="T3" set="1"/> <!-- or <to_tap …/> -->
<jumper_point label="C1" fraction="0.5"> <!-- or length="…" (along it) or distance="…" (from its from clamp) -->
<object kind="clamp" clamp_length="0.1"> <!-- held up: a support -->
<hold structure="T3" wire="JW"/> <!-- a structure's strings; or <hold x y z length weight/>: a string from a point -->
</object>
</jumper_point>
</jumper>
<!-- structures, sections, jumpers, systems, alignments and routes may
hold the values of plugins' table columns, last inside them:
<field key="code.insulation_level" value="low"/> -->
<!-- files before version 5, read and converted: in <section>, <load span fraction|distance|station vertical
label diameter drag wind_area ice_area/> (a point with a body) and <spread_load span start_… end_… load
label/> (two points and a spread); in <jumper>, <support length weight fraction x y z/> and <clamp structure
wire at clamp_length/> (support points), a placeholder <from> beside <from_tap>; several of fraction,
distance, station on one place (a station over a distance over the fraction); circuit= for circuit_name= -->
<spacer id="SP1" weight="120" compression="10000"> <!-- an interphase spacer -->
<end section="S1" point="P1"/> <end section="S2" point="P1"/>
</spacer>
<circuit_start structure="T7" set="1"/> <!-- a circuit's end that is a start -->
<phase_color label="L1" color="#8b4513"/> <!-- display colours -->
<creep_stretch creep_case="…">
<load_case name="…"/>
<hot temperature="100" hours="500"/> <!-- version 15: a time at high temperature (°C, hours); the wire types
with a law of creep at elevated temperature take it after creep -->
</creep_stretch>
<defaults spacer_compression="10000"/> <!-- the project's default values -->
<solver jumper_loads="pull" taps="once" loads_per="unstretched" blocks="equal_h" local_spans="mean"/> <!-- Criteria › Calculation options; defaults estimate, loop, stretched, sheaves (blocks: version 10), worst (local_spans, 2026-11-03) -->
<bimetallic behavior="bird_cage"/> <!-- or compression, max_virtual_compression_pa="…" -->
<structure_loads condition="creep"> <!-- the old Loads for structures: kept as read, no longer used since 2026-11-15 -->
<weather_case name="…"/> <!-- a weather case once sent unfactored; load_case read, not used since 2026-10-25 -->
<broken_case name="…"/> <!-- version 9: a broken-wire case once sent -->
<type_cases type="…"><case name="…"/></type_cases> <!-- older files: a type's default load cases, read into a group "type X" -->
</structure_loads>
<structure_group name="angle 10–30°" description="…"> <!-- version 18 (2026-11-15): which load cases its structures take -->
<structure id="T7"/> <!-- picked by hand -->
<rules angle_from_deg="10" angle_to_deg="30" alignment="main" station_from="0" station_to="5000" dead_end="false" elevation_from="0" elevation_to="1000">
<type id="1A"/> <!-- every rule given must hold, bounds included -->
</rules>
<case name="wind"/> <!-- the load cases taken; none: its structures take none from it -->
</structure_group>
<structure_group load_case="ice"> <!-- the same raise: load case "ice"'s own list (Load cases… › Applies to); no name -->
<structure id="T4"/> <!-- takes ice on top of its groups' cases -->
<excluded id="T5"/> <!-- does not take ice, whatever its groups give -->
</structure_group>
<structure_group load_case="0 °C + 60 N/m ice"> <!-- an own list with rules (2026-11-15, the same version): the case only where they hold -->
<rules elevation_from="1000"/> <!-- ground elevation (the structure's position z) from 1000 m; not known: matches (the safe side) -->
</structure_group>
<electrical soil_resistivity_ohm_m="100" earthing_resistance_ohm="10" earth_return="carson_series" mean_height="solved"/> <!-- version 11: line parameters; earth_return also complex_depth, carson_first_terms; mean_height also two_thirds_sag -->
</line>
The meaning of every value is that of the line file (Line files). Like a line file, an OHL XML line is checked (references, stringing, alignment ties) when it is read.