Exporting global nodes to xml
Let's say I have a global named ^a and I need to export its nodes 1, 2, 3, 5 only.
Currently I write something like this:
Write $SYSTEM.OBJ.Export("a(1).gbl,a(2).gbl,a(3).gbl,a(5).gbl", "C:\Users\eduard\Desktop\a.xml")Is there a way to write it shorter? I want to write global node once and list all the subscripts I need.
Discussion (1)0
Comments
You can only use array instead of list of exported elements.
USER>zw list
list("a(1).gbl")=""
list("a(3).gbl")=""
USER>d $system.OBJ.ExportToStream(.list,.stream)
Exporting to XML started on 09/16/2016 11:19:58
Exporting global: ^a(1)
Exporting global: ^a(3)
Export finished successfully.