json2xml: handle null
This commit is contained in:
parent
89cb037efa
commit
4031bc5161
|
@ -39,8 +39,10 @@ def node_to_xml:
|
|||
as $children |
|
||||
"<" + .name + $attrs + ">" + $children + "</" +
|
||||
.name + ">"
|
||||
else
|
||||
elif .name then
|
||||
"<" + .name + $attrs + "/>"
|
||||
else
|
||||
"<!---->"
|
||||
end
|
||||
end
|
||||
;
|
||||
|
|
Loading…
Reference in New Issue