1
0
Fork 0
forked from fun/fun

Some XML examples documentation fixes. (0.37.1)

This commit is contained in:
Johannes Findeisen 2025-12-10 23:42:00 +01:00
commit b2986075cb
6 changed files with 185 additions and 1 deletions

View file

@ -38,3 +38,23 @@ else
print(title)
print("Author: ")
print(author)
/* Expected output:
Root element:
<?xml version="1.0" encoding="UTF-8"?>
<ns:library xmlns:ns="http://example.org/ns/library" xmlns:bk="http://example.org/ns/book">
<bk:book id="B-1">
<bk:title>The Art of Fun</bk:title>
<bk:author>J. Findeisen</bk:author>
</bk:book>
<bk:book id="B-2">
<bk:title>Minimal VM Design</bk:title>
<bk:author>A. Dev</bk:author>
</bk:book>
</ns:library>
First book title:
The Art of Fun
Author:
J. Findeisen
*/