Repository navigation
Commit a9d6e56
feat: write the library version as BTCPP_version in the <root> of generated XML (#1264)
writeTreeNodesModelXML() and WriteTreeToXML() now add BTCPP_version="<major>.<minor>"
to <root>, next to BTCPP_format. It tells tools like Groot2 which builtin node
models and attributes (e.g. the _onlyIf/_onStart preconditions of 4.11) are
available. The XSD declares it as an optional attribute.
The parser ignores it, as all BT.CPP 4.x releases already ignore unknown <root>
attributes, so files written by 4.11 still load in older versions.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 1a21a78 commit a9d6e56
2 files changed
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1454 | 1454 | | |
1455 | 1455 | | |
1456 | 1456 | | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
1457 | 1465 | | |
1458 | 1466 | | |
1459 | 1467 | | |
| |||
1463 | 1471 | | |
1464 | 1472 | | |
1465 | 1473 | | |
| 1474 | + | |
1466 | 1475 | | |
1467 | 1476 | | |
1468 | 1477 | | |
| |||
1641 | 1650 | | |
1642 | 1651 | | |
1643 | 1652 | | |
| 1653 | + | |
1644 | 1654 | | |
1645 | 1655 | | |
1646 | 1656 | | |
| |||
1765 | 1775 | | |
1766 | 1776 | | |
1767 | 1777 | | |
| 1778 | + | |
1768 | 1779 | | |
1769 | 1780 | | |
1770 | 1781 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
484 | 508 | | |
485 | 509 | | |
486 | 510 | | |
| |||
0 commit comments