mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-21 18:10:42 -04:00
30 lines
763 B
Plaintext
30 lines
763 B
Plaintext
let doc = {
|
|
root = {
|
|
ns = {
|
|
prefix = "myns",
|
|
uri = "http://example.com",
|
|
},
|
|
name = "top",
|
|
attrs = {id = "foo"},
|
|
children = [
|
|
{
|
|
ns = "http://example.org/",
|
|
name = "child1",
|
|
attrs = { attr1 = "value1", attr2 = "value2"},
|
|
children = [
|
|
"inner text node",
|
|
{
|
|
name = "myns:grandchild",
|
|
children = [
|
|
{
|
|
text = "Another text node",
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
out xml doc; |