Eduard Lebedyuk · Sep 16, 2016

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.

0 552
Discussion (1)0
Log in or sign up to continue

You can only use array instead of list of exported elements.

USER>zw list

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.